From 5527da1b48c1ce2cf04414ad923b169d8a2d7f35 Mon Sep 17 00:00:00 2001 From: Lukas Woodtli Date: Mon, 20 Nov 2023 21:39:36 +0100 Subject: [PATCH] ci: Fix building and running with sanitizers The sanitizers need to be activated at configuration time of the CMake project. Not when executing the build command. --- .github/workflows/build_and_test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index 1c8035ceb..1190ebd1d 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -35,13 +35,13 @@ jobs: - name: Build all binaries run: | - tools/ci/run_ci.sh --run-build --verbose + tools/ci/run_ci.sh --run-build --sanitizer ${{ matrix.sanitizer }} --verbose env: CC: ${{ matrix.compiler }} - name: Build, execute sanitized unit tests run: | - tools/ci/run_ci.sh --run-tests --sanitizer ${{ matrix.sanitizer }} + tools/ci/run_ci.sh --run-tests env: CC: ${{ matrix.compiler }}