From f2393d4894a552cd9aa7d858807cdb093b46685c Mon Sep 17 00:00:00 2001 From: Kim Walisch Date: Mon, 18 Mar 2024 12:46:12 +0100 Subject: [PATCH] Fic GCC sanitizer test --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c120e527..d94c2a336 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -232,7 +232,9 @@ jobs: run: Release\primesieve.exe 1000 --print linux_gcc_sanitizers: - runs-on: ubuntu-latest + # This test fails on Ubuntu 22.04 likely due to an Ubuntu or compiler bug. + # See discussion at: https://github.com/quantumlib/Stim/issues/717#issuecomment-2002623560 + runs-on: ubuntu-20.04 env: CC: gcc CXX: g++ @@ -243,7 +245,7 @@ jobs: cmake . -DBUILD_TESTS=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-Wall -Wextra -pedantic -Werror -O1 -g -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer" -DCMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -Werror -O1 -g -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer" cmake --build . --parallel --verbose - name: CTest (unit tests) - run: ctest -j2 + run: ctest -j2 --output-on-failure - name: primesieve --test run: ./primesieve --test # Run primesieve binary