From a96ea5e3a921b5151015b258e2d6c859f6d48f57 Mon Sep 17 00:00:00 2001 From: Askanaz Torosyan <46795157+nVxx@users.noreply.github.com> Date: Wed, 8 Nov 2023 08:19:43 +0100 Subject: [PATCH] Switch to Ubuntu 20.04/clang-12 for clang build. --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1777d72e1..0d01ee824 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,8 +32,8 @@ jobs: - target-platform: iphonesimulator os: macos-12 type: Debug - # Test with latest Clang too - - os: ubuntu-22.04 + # Test with Clang too + - os: ubuntu-20.04 type: Debug compiler: clang # on Windows we skip Debug because otherwise the hosted runner runs out of space @@ -63,6 +63,8 @@ jobs: cmake_args="-DCMAKE_BUILD_TYPE=${{ matrix.type }}" if [[ "${{matrix.compiler}}" == "clang"* ]]; then + # Make it so that clang-12 is picked up (is already installed). + export PATH=/usr/lib/llvm-12/bin/:$PATH cmake_args+=" -DCMAKE_EXPORT_COMPILE_COMMANDS=1" cmake_args+=" -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/cmake/toolchain/Linux_X86_64_llvm.toolchain" fi