Skip to content

Commit

Permalink
try to fix the gcc-11 build failure in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaller authored May 30, 2024
1 parent f8c220e commit 4bcc36a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ jobs:
- name: Choose GCC
if: startsWith(matrix.os, 'ubuntu')
run: |
# the following two lines try to fix a build failure with
# "Unable to locate package gcc-11"; see discussion at
# https://github.com/actions/runner-images/issues/9679
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -y
sudo apt-get install gcc-${{ matrix.gcc }} g++-${{ matrix.gcc }}
sudo update-alternatives \
--install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.gcc }} 100 \
Expand Down

0 comments on commit 4bcc36a

Please sign in to comment.