Skip to content

Merge pull request #34 from sunxfancy/dev #66

Merge pull request #34 from sunxfancy/dev

Merge pull request #34 from sunxfancy/dev #66

Workflow file for this run

name: CMake
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
# os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: Configure CMake
# Configure CMake in a 'build' subdirectory.
run: bash ${{github.workspace}}/scripts/build-all.sh config ${{github.workspace}}
- name: Build
# Build your program with the given configuration
run: bash ${{github.workspace}}/scripts/build-all.sh build ${{github.workspace}}
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
- name: Test
run: bash ${{github.workspace}}/scripts/build-all.sh test ${{github.workspace}}