Skip to content

Commit

Permalink
gh: Make release build without sanitizers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezurko authored and lkorenc committed Feb 7, 2024
1 parent dcaaa8d commit 67b0572
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
llvm-version: [17]
image-version: [22.04]
build-type: [rel, deb]
sanitizers: [ON, OFF]

runs-on: ubuntu-${{ matrix.image-version }}
timeout-minutes: 60
Expand All @@ -46,18 +47,18 @@ jobs:
submodules: true
fetch-depth: 1

- name: Configure build
- name: Configure build - sanitizers ${{ matrix.sanitizers }}
run: |
cmake --preset ninja-multi-default --toolchain ${TOOLCHAIN} \
-DCMAKE_VERBOSE_MAKEFILE=True \
-DENABLE_SANITIZER_UNDEFINED_BEHAVIOR=ON \
-DENABLE_SANITIZER_ADDRESS=ON \
-DENABLE_SANITIZER_UNDEFINED_BEHAVIOR=${{ matrix.sanitizers }}\
-DENABLE_SANITIZER_ADDRESS=${{ matrix.sanitizers }}\
-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} \
-DLLVM_EXTERNAL_LIT=${LLVM_EXTERNAL_LIT}
- name: Build ${{ matrix.build-type }}
- name: Build ${{ matrix.build-type }} with sanitizers set ${{ matrix.sanitizers }}
run: |
cmake --build --preset ninja-${{ matrix.build-type }} -j $(nproc)
- name: Test ${{ matrix.build-type }}
- name: Test ${{ matrix.build-type }} with sanitizers set ${{ matrix.sanitizers }}
run: ctest --preset ninja-${{ matrix.build-type }} --output-on-failure

0 comments on commit 67b0572

Please sign in to comment.