Skip to content

Commit

Permalink
Try gcc 12 on a different linux image
Browse files Browse the repository at this point in the history
  • Loading branch information
emoon committed Feb 2, 2024
1 parent 849d648 commit deb9162
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,35 @@ on:
branches: [ "master", "dev" ]

jobs:
build:
linux_ubuntu_20_04:
name: Linux GCC ${{ matrix.gcc-version }}
runs-on: ubuntu-20.04
strategy:
matrix:
gcc-version: [9, 10, 11, 12, 13]
gcc-version: [9, 10, 11, 13] # 12 doesn't work for some reason
steps:
- uses: actions/checkout@v4

- name: Install GCC ${{ matrix.gcc-version }}
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt update
sudo apt install -y gcc-${{ matrix.gcc-version }} g++-${{ matrix.gcc-version }}
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.gcc-version }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.gcc-version }}
sudo update-alternatives --set gcc /usr/bin/gcc-${{ matrix.gcc-version }}
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libsdl2-dev

- name: Build project
run: make -j$(nproc)

linux_ubuntu_22_04:
name: Linux GCC ${{ matrix.gcc-version }}
runs-on: ubuntu-22.04
strategy:
matrix:
gcc-version: [12]
steps:
- uses: actions/checkout@v4

Expand All @@ -34,3 +57,4 @@ jobs:

- name: Build project
run: make -j$(nproc)

0 comments on commit deb9162

Please sign in to comment.