diff options
author | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-21 18:46:18 +0400 |
---|---|---|
committer | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-21 18:46:18 +0400 |
commit | 71a9111c5c2d2195f9efd27cbc8fd9cedcafd9e5 (patch) | |
tree | ad365264f9ddff9e72d36b22db169fa73b10c181 | |
parent | 68f85005e3f597cf242403752e3e6408c4056e54 (diff) | |
download | kit-71a9111c5c2d2195f9efd27cbc8fd9cedcafd9e5.zip |
test
-rw-r--r-- | .github/workflows/build_and_test.yml | 32 |
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 |