summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build_and_test.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
index d9c63a6..26e0b5e 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -24,15 +24,30 @@ jobs:
- uses: actions/checkout@v2
- name: Build
+ if: runner.os != 'Windows'
run: |
cmake -D CMAKE_BUILD_TYPE=$BUILD_TYPE -B build -S .
cmake --build build --config $BUILD_TYPE
+ - name: Build with Visual Studio
+ if: runner.os == 'Windows'
+ shell: bash
+ run: |
+ cmake -B build -S .
+ cmake --build build --config $BUILD_TYPE
+
- name: Run tests
+ if: runner.os != 'Windows'
working-directory: ${{ github.workspace }}/build
run: |
ctest -V -C $BUILD_TYPE
+ - name: Run tests on Windows
+ if: runner.os == 'Windows'
+ working-directory: ${{ github.workspace }}/build
+ run: |
+ ctest -V
+
integration:
strategy:
matrix:
@@ -45,13 +60,30 @@ jobs:
- uses: actions/checkout@v2
- name: Build
+ if: runner.os != 'Windows'
run: |
cmake -D CMAKE_BUILD_TYPE=$BUILD_TYPE -B build -S .
cmake --build build --config $BUILD_TYPE
working-directory: ./source/test/integration/${{ matrix.name }}
+ - name: Build with Visual Studio
+ if: runner.os == 'Windows'
+ shell: bash
+ run: |
+ cmake -B build -S .
+ cmake --build build --config $BUILD_TYPE
+ working-directory: ./source/test/integration/${{ matrix.name }}
+
- name: Run tests
+ if: runner.os != 'Windows'
shell: bash
run: |
ctest -V -C $BUILD_TYPE
working-directory: ./source/test/integration/${{ matrix.name }}/build
+
+ - name: Run tests on Windows
+ if: runner.os == 'Windows'
+ shell: bash
+ run: |
+ ctest -V
+ working-directory: ./source/test/integration/${{ matrix.name }}/build