Trying to fix the build #200
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: Build | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
name: ${{ matrix.os }} - ${{ matrix.buildPreset }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
configurePreset: [ GCC, visual-studio-17-2022 ] | |
buildPreset: [ msvc-debug, msvc-release, g++-release, g++-debug ] | |
exclude: | |
- os: ubuntu-latest | |
configurePreset: visual-studio-17-2022 | |
- os: ubuntu-latest | |
buildPreset: msvc-debug | |
- os: ubuntu-latest | |
buildPreset: msvc-release | |
- os: windows-latest | |
configurePreset: GCC | |
- os: windows-latest | |
buildPreset: g++-debug | |
- os: windows-latest | |
buildPreset: g++-release | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Dependencies (Linux) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt update | |
sudo apt install libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev libgl1-mesa-dev ninja-build -y | |
- name: Install Dependencies (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
choco install ninja | |
- name: Configure CMake (non-GCC) | |
if: matrix.configurePreset != 'GCC' | |
run: cmake --preset "${{ matrix.configurePreset }}" | |
- name: Configure CMake (GCC) | |
if: matrix.configurePreset == 'GCC' | |
run: cmake --preset "${{ matrix.configurePreset }}" -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ | |
- name: Build | |
run: cmake --build . --preset "${{ matrix.buildPreset }}" | |
working-directory: ${{ github.workspace }} | |
- name: Test (Debug) | |
if: matrix.buildPreset == 'g++-debug' || matrix.buildPreset == 'msvc-debug' | |
run: ./Test | |
working-directory: ${{ github.workspace }}/build/${{ matrix.configurePreset }}/Debug | |
- name: Test (Release) | |
if: matrix.buildPreset == 'g++-release' || matrix.buildPreset == 'msvc-release' | |
run: ./Test | |
working-directory: ${{ github.workspace }}/build/${{ matrix.configurePreset }}/Release |