Skip to content

gcc 12 seems missing? #9

gcc 12 seems missing?

gcc 12 seems missing? #9

Workflow file for this run

name: C/C++ CI
on:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
gcc-version: [7, 8, 9, 10, 11, 13]
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: Check GCC version
run: |
gcc --version
g++ --version
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libsdl2-dev
- name: Build project
run: make -j$(nproc)