From 0831fe1d0ac13eb22076973d118ce8994487843e Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Fri, 31 May 2024 12:54:46 +0200 Subject: [PATCH] ci/sanitizers: use clang-17 and do not recover (#3054) * ci/sanitizers: use clang-17 and do not recover * set CXX compiler --- .github/workflows/sanitizers.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sanitizers.yml b/.github/workflows/sanitizers.yml index a05f6973a1..a33b1c6ab4 100644 --- a/.github/workflows/sanitizers.yml +++ b/.github/workflows/sanitizers.yml @@ -10,17 +10,18 @@ on: jobs: sanitizers: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: sanitizer: [thread, address, undefined] env: - CC: clang + CC: clang-17 + CXX: clang++-17 CMAKE_GENERATOR: Ninja - CXXFLAGS: "-fsanitize=${{ matrix.sanitizer }} -fno-sanitize-recover" - CFLAGS: "-fsanitize=${{ matrix.sanitizer }} -fno-sanitize-recover" + CXXFLAGS: "-fsanitize=${{ matrix.sanitizer }} -fno-sanitize-recover=all -fno-sanitize=function" + CFLAGS: "-fsanitize=${{ matrix.sanitizer }} -fno-sanitize-recover=all -fno-sanitize=function" ASAN_OPTIONS: fast_unwind_on_malloc=0 steps: @@ -39,6 +40,12 @@ jobs: run: | sudo sysctl -w vm.mmap_rnd_bits=28 + - name: Install clang-tools + run: | + wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - + sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" + sudo apt-get update && sudo apt-get install -y clang-17 + - uses: sreimers/pr-dependency-action@v1 with: name: re