From dcfdc486c34e9cd7243f6bd3ac53b8243a8b4e7c Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Thu, 20 Mar 2025 14:43:27 +0100 Subject: [PATCH] Fix Clang builds on GitHub Actions A while ago the 'ubuntu-latest' image moved from Ubuntu 22.04 to Ubuntu 24.04. See . However, Ubuntu 24.04 does not have packages for Clang 11 and 12 anymore, thus the Clang jobs fail when they try to install the corresponding compilers. Therefore, the workflow is changed to use 'ubuntu-22.04' instead of 'ubuntu-latest'. Furthermore, a job for Clang 19 (latest Clang version available on Ubuntu 24.04) is added to run tests with a newer version, too. --- .github/workflows/ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f8403a..df83021 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,9 +47,15 @@ jobs: strategy: fail-fast: false matrix: - version: [11, 12] + include: + - version: 11 + os: 'ubuntu-22.04' + - version: 12 + os: 'ubuntu-22.04' + - version: 19 + os: 'ubuntu-24.04' - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -61,7 +67,7 @@ jobs: env: CXX: clang-${{ matrix.version }} run: cmake -S . -B build - -D CMAKE_CXX_COMPILER=clang++ + -D CMAKE_CXX_COMPILER=clang++-${{ matrix.version }} -D CMAKE_BUILD_TYPE:STRING=Release -D ${{ env.PROJECT }}_OPT_SELECT_NONSTD=ON -D ${{ env.PROJECT }}_OPT_BUILD_TESTS=ON