From 23b5eddac8248b98822e64c4a9687d2293d4de78 Mon Sep 17 00:00:00 2001 From: pantor Date: Wed, 18 Mar 2020 09:03:28 +0100 Subject: [PATCH] github ci windows, mac --- .github/workflows/ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb91ac5..824eb3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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