github ci windows, mac

This commit is contained in:
pantor
2020-03-18 09:03:28 +01:00
parent 225a468032
commit 23b5eddac8

View File

@@ -2,9 +2,15 @@ name: C++ CI
on: push
env:
BUILD_TYPE: Release
jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
@@ -17,8 +23,8 @@ jobs:
- name: Build
run: |
mkdir -p build && cd build
cmake ..
cmake --build . --config Release -- -j4
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
cmake --build . --config $BUILD_TYPE -j4
- name: Test
run: ctest -C Release -V
run: ctest -C $BUILD_TYPE -V