Fix new API breaks #75
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: CI | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
name: ${{matrix.platform.name}} ${{matrix.config.name}} | |
runs-on: ${{matrix.platform.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- { name: Windows, os: windows-latest } | |
- { name: Linux GCC, os: ubuntu-latest } | |
- { name: Linux Clang, os: ubuntu-latest, flags: -DCMAKE_CXX_COMPILER=clang++ } | |
- { name: macOS, os: macos-latest } | |
config: | |
- { name: Debug } | |
- { name: Release } | |
steps: | |
- name: Install Linux Dependencies | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt update | |
sudo apt install libxrandr-dev libxcursor-dev libudev-dev libopenal-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure | |
run: cmake --preset dev -DCMAKE_BUILD_TYPE=${{matrix.config.name}} ${{matrix.platform.flags}} | |
- name: Build | |
run: cmake --build build --config ${{matrix.config.name}} | |
- name: Format | |
if: matrix.platform.name == 'Linux Clang' && matrix.config.name == 'Debug' | |
run: | | |
cmake --build build --target format | |
git diff --exit-code | |
- name: Tidy | |
if: matrix.platform.name == 'Linux Clang' && matrix.config.name == 'Debug' | |
run: cmake --build build --target tidy |