Skip to content

Commit

Permalink
GH actions: Update Clang to 16 on Linux to fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenke committed Jan 1, 2024
1 parent 35815f1 commit 128654a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
cpp_compiler: g++-13
- os: ubuntu-latest
toolchain: LLVM
c_compiler: clang-15
cpp_compiler: clang++-15
c_compiler: clang-16
cpp_compiler: clang++-16
- os: windows-latest
toolchain: MSVC
c_compiler: cl
Expand Down Expand Up @@ -66,6 +66,15 @@ jobs:
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Update Ubuntu images to Clang 16
# Workaround until https://github.com/actions/runner-images/issues/8659 is resolved
if: runner.os == 'Linux'
run: >
sudo cp tools/llvm-snapshot.gpg.key.asc /etc/apt/trusted.gpg.d/llvm-snapshot.asc
sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main"
sudo apt-get -qq update
sudo apt-get -qq install clang-16
- name: Configure CMake (Unix)
if: runner.os != 'Windows'
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
Expand Down

0 comments on commit 128654a

Please sign in to comment.