Skip to content

Commit

Permalink
Fixed linux gcc 13 tests.
Browse files Browse the repository at this point in the history
GitHub no longer installs gcc 13 by default. See
actions/runner-images#9679.
So wie install it ourselves.

Increased timeout because of the additional time it takes to install
gcc.
  • Loading branch information
Sedeniono committed May 16, 2024
1 parent 8aeb671 commit 89b0270
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test_gcc_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,19 @@ jobs:
cpp_version: c++20

runs-on: ubuntu-22.04
timeout-minutes: 10
timeout-minutes: 20

steps:
- uses: actions/checkout@v4

# gcc 13 was removed from the runner (https://github.com/actions/runner-images/issues/9679), so install it manually.
- name: Install gcc 13 if required
if: ${{ matrix.gcc_version == 13 }}
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt update -y
sudo apt install g++-13
- name: Install gcc-multilib for x86 if required
# Creating a 32 bit executable on a 64 bit OS requires the gcc multilib.
# It is not installed by default on the github runner.
Expand Down

0 comments on commit 89b0270

Please sign in to comment.