From 00e5af02be0b39fbbad0410c07fdccbea1c8488a Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Fri, 16 Apr 2021 23:46:03 +0430 Subject: [PATCH] CI: Use clang-12 instead of clang-10 when building fuzzers oss-fuzz uses clang-12 anyway, so this patch shouldn't be breaking anything, just letting us use more modern C++ without the CI being sad. --- .github/workflows/cmake.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index c65ab0a2a6..6bceeebd34 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -182,7 +182,14 @@ jobs: # === OS SETUP === # - name: Install Ubuntu dependencies - run: sudo apt-get install ninja-build + run: | + wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - + sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main" + sudo apt-get purge -y clang-10 + sudo apt-get update + sudo apt-get install clang-12 ninja-build + sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 60 + sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 60 if: ${{ runner.os == 'Linux' }} - name: Install macOS dependencies run: brew install ninja