Skip to content

Merge pull request #3 from matbesancon/workflows #21

Merge pull request #3 from matbesancon/workflows

Merge pull request #3 from matbesancon/workflows #21

Workflow file for this run

name: build
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: ${{ matrix.runner }} - ${{ matrix.buildtype }} - ${{ github.event_name }}
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner: [ubuntu-latest, ubuntu-24.04-arm, macos-15-intel, macos-latest, windows-latest, windows-11-arm]
buildtype: [debug, release]
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{matrix.buildtype}}
- name: Build
working-directory: ${{runner.workspace}}/build
# Execute the build. You can specify a specific target with "--target <NAME>"
run: |
cmake --build . --config ${{matrix.buildtype}}