From 73bc469ce3b53e571536ddaae412c29739a6968f Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Fri, 31 May 2024 10:15:45 +0200 Subject: [PATCH] ci/sanitizers: use clang-17 (#1131) --- .github/workflows/sanitizers.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sanitizers.yml b/.github/workflows/sanitizers.yml index d444c1e00..0f744b951 100644 --- a/.github/workflows/sanitizers.yml +++ b/.github/workflows/sanitizers.yml @@ -17,7 +17,7 @@ jobs: os: [ubuntu-22.04] sanitizer: [thread, address] env: - CC: clang + CC: clang-17 CMAKE_GENERATOR: Ninja CFLAGS: "-fsanitize=${{ matrix.sanitizer }}" ASAN_OPTIONS: fast_unwind_on_malloc=0 @@ -38,6 +38,12 @@ jobs: run: | sudo apt-get update && sudo apt-get install -y ninja-build + - 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 + - name: make info run: | echo "OS: ${{ matrix.os }}"