Skip to content

Commit

Permalink
make ci script params more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
ednolan committed Aug 24, 2024
1 parent f99a16f commit e411878
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
submodules: recursive
- name: Run
run: |
./ci.sh -fsanitize=address -fsanitize=undefined -fsanitize-undefined-trap-on-error
./ci.sh -DCMAKE_CXX_FLAGS='-fsanitize=address -fsanitize=undefined -fsanitize-undefined-trap-on-error'
clang-linux:
runs-on: ubuntu-latest
container:
Expand All @@ -32,7 +32,7 @@ jobs:
submodules: recursive
- name: Run
run: |
./ci.sh -fsanitize=address -fsanitize=undefined -fsanitize-undefined-trap-on-error -stdlib=libc++
./ci.sh -DCMAKE_CXX_FLAGS='-fsanitize=address -fsanitize=undefined -fsanitize-undefined-trap-on-error -stdlib=libc++'
msvc-windows:
runs-on: windows-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function main() {
local checkout="$PWD"
mkdir "$checkout/build"
cd "$checkout/build"
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_STANDARD=23 -DBUILD_TESTING=On -DCMAKE_CXX_FLAGS="${cxx_flags[*]}"
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_STANDARD=23 -DBUILD_TESTING=On "$@"
cmake --build . --parallel
ctest -C Debug
}
Expand Down

0 comments on commit e411878

Please sign in to comment.