Skip to content

Merge pull request #7 from machinefi/release-please--branches--main--… #34

Merge pull request #7 from machinefi/release-please--branches--main--…

Merge pull request #7 from machinefi/release-please--branches--main--… #34

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}}