Add Windows to test workflow.
@@ -7,10 +7,17 @@ jobs:
strategy:
matrix:
- os: [ubuntu-latest, macos-latest]
+ os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: make test
+ if: runner.os != 'Windows'
run: make test
+ - name: cmake test
+ if: runner.os == 'Windows'
+ run: |
+ cmake -G 'Visual Studio 16 2019' -A x64 -DBUILD_TESTING=ON
+ cmake --build . --config Release
+ ctest --verbose --output-on-failure
