Integrate latest code from WinUAE (#18) #94
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: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
linux_ubuntu_22_04: | |
name: (Ubuntu 22.04) GCC ${{ matrix.gcc-version }}.x | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
gcc-version: [11, 12, 13] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install GCC ${{ matrix.gcc-version }} | |
run: | | |
sudo apt-get install -y gcc-${{ matrix.gcc-version }} g++-${{ matrix.gcc-version }} | |
- name: Select GCC ${{ matrix.gcc-version }} | |
run: | | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.gcc-version }} 100 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.gcc-version }} 100 | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y libsdl2-dev cmake ninja-build | |
- name: Build quaesar | |
env: | |
CC: gcc-${{ matrix.gcc-version }} | |
CXX: g++-${{ matrix.gcc-version }} | |
run: mkdir temp && cd temp && cmake .. -G Ninja && ninja | |
linux_clang: | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.os }} Clang ${{ matrix.clang-version }}.x | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-20.04 | |
clang-version: 8 | |
- os: ubuntu-20.04 | |
clang-version: 9 | |
- os: ubuntu-20.04 | |
clang-version: 10 | |
- os: ubuntu-20.04 | |
clang-version: 11 | |
- os: ubuntu-22.04 | |
clang-version: 12 | |
- os: ubuntu-22.04 | |
clang-version: 13 | |
- os: ubuntu-22.04 | |
clang-version: 14 | |
- os: ubuntu-22.04 | |
clang-version: 15 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Clang ${{ matrix.clang-version }} | |
run: | | |
sudo apt-get install -y clang-${{ matrix.clang-version }} 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 | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y libsdl2-dev cmake ninja-build | |
- name: Build quaesar | |
env: | |
CC: clang-${{ matrix.clang-version }} | |
CXX: clang++-${{ matrix.clang-version }} | |
run: mkdir temp && cd temp && cmake .. -G Ninja && ninja | |
macos: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-14] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: brew install sdl2 cmake ninja | |
- name: Build quaesar | |
run: mkdir temp && cd temp && cmake .. -G Ninja && ninja | |
windows: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2019, windows-2022] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup MSBuild path | |
uses: microsoft/setup-msbuild@v2 | |
- name: Build Solution (Debug, x64) | |
run: mkdir temp && cd temp && ..\bin\windows\bin\cmake .. && msbuild quaesar.sln /p:Configuration=Debug /p:Platform="x64" | |