Update Workflow

This commit is contained in:
Zhi Guan
2022-10-11 09:38:40 +08:00
parent 0d32a8cdcc
commit 51b0e2bcc1
2 changed files with 11 additions and 8 deletions

View File

@@ -2,9 +2,9 @@ name: CMake
on:
push:
branches: [ develop ]
branches: [ $default-branch ]
pull_request:
branches: [ develop ]
branches: [ $default-branch ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
@@ -15,7 +15,10 @@ jobs:
# 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
runs-on: ubuntu-latest
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
@@ -31,7 +34,7 @@ jobs:
- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}