Destress doctest loops for when/then tests #56
Workflow file for this run
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 project | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
build: | |
- { | |
os: ubuntu-22.04, | |
preset: default | |
} | |
- { | |
os: macos-12, | |
preset: xcode | |
} | |
- { | |
os: windows-2022, | |
preset: msvc | |
} | |
runs-on: ${{ matrix.build.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup MSVC | |
if: startsWith(matrix.build.os, 'windows') | |
uses: ilammy/msvc-dev-cmd@v1 | |
- run: sudo apt-get update && sudo apt-get install --no-install-recommends ninja-build xsltproc | |
if: ${{ startsWith(matrix.build.os,'ubuntu') }} | |
- name: Configure project | |
run: cmake --preset ${{ matrix.build.preset }} | |
- name: Build project | |
run: cmake --build --preset ${{ matrix.build.preset }}-release --parallel | |
- name: Run unit test | |
run: ctest --preset ${{ matrix.build.preset }}-release --parallel | |