towards Docker based examples workflow 13 #340
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: tests | |
on: push | |
jobs: | |
build_run_tests: | |
name: build/run tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install deps | |
run: | | |
sudo apt update | |
sudo apt install libgl1-mesa-dev xorg-dev | |
if: startsWith(matrix.os, 'ubuntu') | |
- name: configure | |
run: | | |
cd test | |
mkdir _build | |
cd _build | |
cmake .. | |
- name: build | |
run: | | |
cd test/_build | |
cmake --build . | |
- name: run | |
run: | | |
cd test/_build | |
# -C Debug: chose "Debug" if multiple build configs available, | |
# like in Visual Studio Solutions, -V: verbose output | |
ctest -C Debug -V |