Skip to content

Build and test

Build and test #15

Workflow file for this run

name: Build and test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-tests:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, macos-14, ubuntu-latest, windows-2019] #macos-14 is macSilicon
env:
CTEST_OUTPUT_ON_FAILURE: 1
steps:
- uses: actions/checkout@v2
- name: Configuring
run: |
mkdir build && cd build && cmake .. -DDISPENSO_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Release
- name: Build
working-directory: ./build
run: |
cmake --build . --parallel 4 --config Release
- name: Running Unit Tests
working-directory: ./build
run: |
ctest -LE flaky --build-config Release