Skip to content

Commit 6daa332

Browse files
authored
Fix failing Clang builds on GitHub Actions (#79, thanks @striezel)
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 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.
1 parent 54ca18b commit 6daa332

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,17 @@ 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: 16
56+
os: 'ubuntu-24.04'
57+
- version: 19
58+
os: 'ubuntu-24.04'
5159

52-
runs-on: ubuntu-latest
60+
runs-on: ${{ matrix.os }}
5361

5462
steps:
5563
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)