Skip to content

Commit

Permalink
CI: switch to clang 21
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Feb 2, 2025
1 parent 68f4afc commit 3b610e4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-24.04]
compiler: [g++-14, clang++-19, clang++-20]
compiler: [g++-14, clang++-20, clang++-21]
build_type: [Release, Debug]
cache: ['', Redis]
include:
Expand All @@ -29,20 +29,20 @@ jobs:
if: runner.os == 'Linux'
run: |
wget -O- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
if [[ ${{ matrix.compiler }} == "clang++-19" ]]; then
sudo add-apt-repository "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main"
fi
if [[ ${{ matrix.compiler }} == "clang++-20" ]]; then
sudo add-apt-repository "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-20 main"
fi
if [[ ${{ matrix.compiler }} == "clang++-21" ]]; then
sudo add-apt-repository "deb http://apt.llvm.org/noble/ llvm-toolchain-noble main"
fi
sudo apt-get update
sudo apt-get install z3 re2c ninja-build
if [[ ${{ matrix.compiler }} == "clang++-19" ]]; then
sudo apt-get install clang++-19
fi
if [[ ${{ matrix.compiler }} == "clang++-20" ]]; then
sudo apt-get install clang++-20
fi
if [[ ${{ matrix.compiler }} == "clang++-21" ]]; then
sudo apt-get install clang++-21
fi
if [[ "${{ matrix.cache }}" == "Redis" ]]; then
sudo apt-get install libhiredis-dev
fi
Expand Down

0 comments on commit 3b610e4

Please sign in to comment.