Skip to content

Commit

Permalink
Fix syntax error in windos preset
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Oct 11, 2024
1 parent cec837f commit 2cba6ca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install static analyzers
if: matrix.os == 'macos-15'
run: >-
brew install llvm-19 cmake ninja
- name: Install static analyzers
if: matrix.os == 'ubuntu-24.04'
run: >-
Expand All @@ -47,18 +52,18 @@ jobs:
- name: Configure
shell: pwsh
run: cmake --preset=Release -D BUILD_SHARED_LIBS=${{ matrix.shared }}
run: cmake --preset=Debug -D BUILD_SHARED_LIBS=${{ matrix.shared }}

- name: Setup PATH
if: matrix.os == 'windows-2022' && matrix.type == 'shared'
run: Add-Content "$env:GITHUB_PATH" "$(Get-Location)\build\Release"
run: Add-Content "$env:GITHUB_PATH" "$(Get-Location)\build\Debug"

- name: Build
run: cmake --build build --config Release -j 2
run: cmake --build build --config Debug -j 2

- name: Test
working-directory: build
run: ctest --output-on-failure --no-tests=error -C Release -j 2
run: ctest --output-on-failure --no-tests=error -C Debug -j 2

- name: Install
run: cmake --install build --config Release --prefix prefix
run: cmake --install build --config Debug --prefix prefix
2 changes: 1 addition & 1 deletion CMakeLinuxPresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"ci-std"
],
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wsign-conversion -Wcast-align -Wcast-qual -Wnull-dereference -Woverloaded-virtual -Wformat=2 -Werror"
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wsign-conversion -Wcast-align -Wcast-qual -Wno-null-dereference -Woverloaded-virtual -Wformat=2 -Werror"
},
"condition": {
"type": "notEquals",
Expand Down
1 change: 1 addition & 0 deletions CMakeWindowsPresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"inherits": [
"ci-std",
"dev-mode"
]
}
]
}

0 comments on commit 2cba6ca

Please sign in to comment.