Skip to content

Commit cf81e04

Browse files
committed
Fix failing Clang builds on GitHub Actions
A while ago the 'ubuntu-latest' image moved from Ubuntu 22.04 to Ubuntu 24.04. See <actions/runner-images#10636>. 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.
1 parent 67b8c3f commit cf81e04

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,15 @@ jobs:
4747
strategy:
4848
fail-fast: false
4949
matrix:
50-
version: [11, 12]
50+
include:
51+
- version: 11
52+
os: 'ubuntu-22.04'
53+
- version: 12
54+
os: 'ubuntu-22.04'
55+
- version: 19
56+
os: 'ubuntu-24.04'
5157

52-
runs-on: ubuntu-latest
58+
runs-on: ${{ matrix.os }}
5359

5460
steps:
5561
- uses: actions/checkout@v4
@@ -61,7 +67,7 @@ jobs:
6167
env:
6268
CXX: clang-${{ matrix.version }}
6369
run: cmake -S . -B build
64-
-D CMAKE_CXX_COMPILER=clang++
70+
-D CMAKE_CXX_COMPILER=clang++-${{ matrix.version }}
6571
-D CMAKE_BUILD_TYPE:STRING=Release
6672
-D ${{ env.PROJECT }}_OPT_SELECT_NONSTD=ON
6773
-D ${{ env.PROJECT }}_OPT_BUILD_TESTS=ON

0 commit comments

Comments
 (0)