Skip to content

Commit

Permalink
Fix failing Clang builds on GitHub Actions
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
striezel committed Jan 25, 2025
1 parent 7d1dca8 commit 492f872
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,13 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [11, 12]
include:
- version: 11
os: 'ubuntu-22.04'
- version: 12
os: 'ubuntu-22.04'

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
Expand All @@ -61,7 +65,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
Expand Down

0 comments on commit 492f872

Please sign in to comment.