Skip to content

Commit

Permalink
Update sanitizer_tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSiebert1 authored Nov 24, 2024
1 parent a66aa66 commit 76b46f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/sanitizer_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
sanitizer_flags: [-fsanitize=address -fno-omit-frame-pointer,
-fsanitize=undefined -fno-sanitize-recover=undefined,
-fsanitize=thread,
-fsanitize=memory]
sanitizer: [address, undefined, thread, memory]
build_type: [Debug]
c_compiler : [clang]
cpp_compiler: [clang++]
Expand All @@ -28,11 +25,14 @@ jobs:

- name: Configure CMake
run: |
SANITIZER_FLAGS="-fsanitize=${{ matrix.sanitizer }} -fno-omit-frame-pointer -g"
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_CXX_FLAGS=="${{ matrix.sanitizer_flags }}" \
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }} \
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} \
-DCMAKE_C_FLAGS="$SANITIZER_FLAGS" \
-DCMAKE_CXX_FLAGS="$SANITIZER_FLAGS" \
-DBUILD_TESTS=ON
- name: Build
Expand Down

0 comments on commit 76b46f0

Please sign in to comment.