Skip to content

Merge pull request #8 from machinefi/add-docs-3 #36

Merge pull request #8 from machinefi/add-docs-3

Merge pull request #8 from machinefi/add-docs-3 #36

Workflow file for this run

name: Run unit tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build-cmake:
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build with CMake
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test with CMake
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}