Update CI config

This commit is contained in:
Victor Zverovich
2020-11-03 12:16:15 -08:00
parent fe61b8c630
commit 205eb3a8f2
3 changed files with 27 additions and 23 deletions

View File

@@ -2,12 +2,12 @@ name: macos
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: macos-10.15
strategy:
matrix:
build_type: [Debug, Release]
steps:
- uses: actions/checkout@v2
@@ -17,12 +17,12 @@ jobs:
- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
run: cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} $GITHUB_WORKSPACE
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config $BUILD_TYPE
run: cmake --build . --config ${{matrix.build_type}}
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -C $BUILD_TYPE
run: ctest -C ${{matrix.build_type}}