[WIP] Save state where I've forgotten why I did things #281
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-and-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
steps: | |
# Check out the repository under $GITHUB_WORKSPACE. | |
- name: Checkout sigscape | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies (Ubuntu) | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo apt update | |
sudo apt install -y \ | |
libgl1-mesa-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libudev-dev \ | |
ninja-build | |
- name: Build | |
shell: bash | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DMOCK_ADQAPI=ON -S . | |
cmake --build build | |
else | |
cmake -B build -A x64 -DMOCK_ADQAPI=ON -S . | |
cmake --build build --config Release | |
fi | |
- name: Test | |
shell: bash | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
cmake --build build --target test/run_tests | |
else | |
cmake --build build --config Release --target test/run_tests | |
fi |