Skip to content

Commit

Permalink
CI: enable clang 18
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Sep 20, 2023
1 parent 834ce61 commit 38eb438
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-22.04]
compiler: [g++-11, clang++-17]
compiler: [g++-11, clang++-17, clang++-18]
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++-16" ]]; then
sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main"
fi
if [[ ${{ matrix.compiler }} == "clang++-17" ]]; then
sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main"
fi
if [[ ${{ matrix.compiler }} == "clang++-18" ]]; then
sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main"
fi
sudo apt-get update
sudo apt-get install z3 re2c ninja-build
if [[ ${{ matrix.compiler }} == "clang++-16" ]]; then
sudo apt-get install clang++-16
fi
if [[ ${{ matrix.compiler }} == "clang++-17" ]]; then
sudo apt-get install clang++-17
fi
if [[ ${{ matrix.compiler }} == "clang++-18" ]]; then
sudo apt-get install clang++-18
fi
if [[ "${{ matrix.cache }}" == "Redis" ]]; then
sudo apt-get install libhiredis-dev
fi
Expand Down

0 comments on commit 38eb438

Please sign in to comment.