diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 6596924c..da49ade3 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -129,15 +129,18 @@ jobs: - name: Add repositories for newer GCC run: | sudo apt-add-repository ppa:ubuntu-toolchain-r/test - if: ${{ matrix.cxx == 'g++-11' || matrix.cxx == 'g++-13' }} + if: ${{ matrix.cxx == 'g++-13' }} - name: Add Ubuntu mirrors run: | # GitHub Actions caching proxy is at times unreliable - # see https://github.com/actions/runner-images/issues/7048 - printf 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt - curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt - sudo sed -i 's~http://azure.archive.ubuntu.com/ubuntu/~mirror+file:/etc/apt/mirrors.txt~' /etc/apt/sources.list + # see https://github.com/actions/runner-images/issues/7048. + printf 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | \ + sudo tee /etc/apt/mirrors.txt + curl http://mirrors.ubuntu.com/mirrors.txt | \ + sudo tee --append /etc/apt/mirrors.txt + sudo sed -i 's~http://azure.archive.ubuntu.com/ubuntu/~mirror+file:/etc/apt/mirrors.txt~' \ + /etc/apt/sources.list - name: Create build environment run: |