Skip to content

Update GitHub workflows #26

Update GitHub workflows

Update GitHub workflows #26

Workflow file for this run

name: CMake
on: [push, pull_request]
jobs:
build:
name: ${{matrix.config.name}}
runs-on: ${{matrix.config.os}}
strategy:
matrix:
config:
- os: ubuntu-latest
name: Ubuntu Debug
build_type: Debug
- os: ubuntu-latest
name: Ubuntu Release
build_type: Release
- os: windows-latest
name: Windows Debug
build_type: Debug
- os: windows-latest
name: Windows Release
build_type: Release
- os: macos-latest
name: Mac OS Debug
build_type: Debug
- os: macos-latest
name: Mac OS Release
build_type: Release
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure
run: cmake -S . -B ${{runner.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DBUILD_TESTS=True -DBUILD_EXAMPLES=True
- name: Build
run: cmake --build ${{runner.workspace}}/build
- name: Test
run: ctest --test-dir ${{runner.workspace}}/build