Another Clang fix #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: | |
push: | |
branches: [ "master", "dev" ] | |
pull_request: | |
branches: [ "master", "dev" ] | |
jobs: | |
linux_ubuntu_20_04: | |
name: (Ubuntu 20.04) Linux GCC ${{ matrix.gcc-version }}.x | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
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 quaesar | |
run: make -j$(nproc) | |
linux_clang_ubuntu_20_04: | |
runs-on: ubuntu-20.04 | |
name: (Ubuntu 20.04) Linux Clang ${{ matrix.clang-version }}.x | |
strategy: | |
matrix: | |
clang-version: [8, 9, 10, 11] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Clang ${{ matrix.clang-version }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y clang-${{ matrix.clang-version }} | |
sudo apt-get install -y clang++-${{ matrix.clang-version }} | |
- name: Select Clang ${{ matrix.clang-version }} | |
run: | | |
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.clang-version }} 100 | |
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${{ matrix.clang-version }} 100 | |
clang --version # Display the version of clang for debugging | |
clang++ --version # Display the version of clang for debugging | |
- name: Install dependencies | |
run: sudo apt-get install -y libsdl2-dev | |
- name: Build quaesar | |
env: | |
CC: clang-${{ matrix.clang-version }} | |
CXX: clang++-${{ matrix.clang-version }} | |
run: make -j$(nproc) | |