Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ Checks: '*,
'
WarningsAsErrors: '*'
HeaderFilterRegex: '*'
ExcludeHeaderFilterRegex: 'catch_test_macros.hpp'
7 changes: 6 additions & 1 deletion .github/workflows/main_ci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
name: MLSPP CI

on:
workflow_dispatch:
branches:
- main
push:
branches:
- main
paths:
- "**/CMakeLists.txt"
- ".github/**"
- "**.cpp"
- "**.h"
pull_request:
branches:
- main
paths:
- "**/CMakeLists.txt"
- ".github/**"
- "**.cpp"
- "**.h"
Expand Down Expand Up @@ -143,7 +148,7 @@ jobs:
if: github.event.pull_request.draft == false
needs: [build-and-unit-test, choose_crypto_matrix]
name: Build with clang-tidy
runs-on: ubuntu-latest
runs-on: macos-latest
strategy:
matrix:
crypto: ${{ fromJson(needs.choose_crypto_matrix.outputs.matrix )}}
Expand Down
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@ include(GNUInstallDirs)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")

message("Compiler ID: ${CMAKE_CXX_COMPILER_ID}")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -pedantic -Wextra -Werror -Wmissing-declarations)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
# -Wno-dangling-reference because GCC apparently has some bugs in its implementation
# https://stackoverflow.com/questions/78759847/gcc-14-possibly-dangling-reference-to-a-temporary-warning-or-not-depending-on
add_compile_options(-Wall -pedantic -Wextra -Werror -Wmissing-declarations -Wno-dangling-reference)
elseif(MSVC)
add_compile_options(/W4 /WX)
add_definitions(-DWINDOWS)
Expand Down
2 changes: 1 addition & 1 deletion cmd/interop/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"gflags",
"nlohmann-json"
],
"builtin-baseline": "3b3bd424827a1f7f4813216f6b32b6c61e386b2e",
"builtin-baseline": "0d5cae153065957df7f382de7c1549ccc88027e5",
"overrides": [
{
"name": "openssl",
Expand Down
2 changes: 1 addition & 1 deletion vcpkg
Submodule vcpkg updated 8105 files
Loading