From f0a419fd0901d9bd6d771c847e19ff30bd3d3ced Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Thu, 13 Mar 2025 00:14:48 +0100 Subject: [PATCH] Fix failing 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 failed when they tried to install the corresponding compilers. Therefore, the workflow is changed to use 'ubuntu-22.04' instead of 'ubuntu-latest'. Furthermore, jobs for Clang 16 (the first major version of Clang to support `std::expected`) and Clang 19 (latest Clang version available on Ubuntu 24.04) are added. --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abe14fd..9ce00cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,9 +47,17 @@ jobs: strategy: fail-fast: false matrix: - version: [11, 12] + include: + - version: 11 + os: 'ubuntu-22.04' + - version: 12 + os: 'ubuntu-22.04' + - version: 16 + os: 'ubuntu-24.04' + - version: 19 + os: 'ubuntu-24.04' - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4