srctree

Robin Linden parent d2b4d13c d90e0319
ci: Work around GH Actions installing a Clang-incompatible libstdc++

inlinesplit
.github/workflows/ci.yaml added: 14, removed: 1, total 13
@@ -94,6 +94,13 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends libgl-dev ${{ matrix.compiler }}-${{ matrix.version }} ${{ matrix.apt }}
# See: https://github.com/actions/runner-images/issues/8659
- name: Work around libstdc++ and Clang incompabilities
if: startsWith(matrix.compiler, 'clang') && matrix.version <= 16
run: |
sudo rm -f /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-jammy.list
sudo apt-get update
sudo apt-get install --allow-downgrades libstdc++6=12.3.0-1ubuntu1~22.04 libgcc-s1=12.3.0-1ubuntu1~22.04
- uses: actions/cache@v3
with:
path: ~/.cache/bazel
@@ -243,6 +250,12 @@ jobs:
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main"
- run: sudo apt-get update && sudo apt-get install --no-install-recommends clang-tidy-16
# See: https://github.com/actions/runner-images/issues/8659
- name: Work around libstdc++ and Clang incompabilities
run: |
sudo rm -f /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-jammy.list
sudo apt-get update
sudo apt-get install --allow-downgrades libstdc++6=12.3.0-1ubuntu1~22.04 libgcc-s1=12.3.0-1ubuntu1~22.04
- run: echo "CC=clang-16" >>$GITHUB_ENV && echo "CXX=clang++-16" >>$GITHUB_ENV
- run: |
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-16 100