Skip to content

Commit

Permalink
try to add clang-19 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd committed Jan 18, 2025
1 parent 25389ad commit 01f7b6d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,20 @@ jobs:
with_tests: ON
cmake_options: -DQUILL_SANITIZE_THREAD=ON

# Build with modern clang version
- cxx: clang++-19
build_type: Release
std: 17
os: ubuntu-20.04
with_tests: ON
install: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-19 main"
sudo apt-get update
for i in {1..3}; do
sudo apt-get -o Acquire::Retries=3 install -y clang-19 libc++-19-dev libc++abi-19-dev && break || sleep 15
done
steps:
- uses: actions/checkout@v4

Expand All @@ -95,6 +109,10 @@ jobs:
run: |
sudo apt-get update
${{matrix.install}}
if [[ "${{matrix.cxx}}" == "clang++-19" ]]; then
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-19 100
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-19 100
fi
cmake -E make_directory ${{runner.workspace}}/build
- name: Configure
Expand Down

0 comments on commit 01f7b6d

Please sign in to comment.