From 71a9111c5c2d2195f9efd27cbc8fd9cedcafd9e5 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Sun, 21 Aug 2022 18:46:18 +0400 Subject: test --- .github/workflows/build_and_test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to '.github/workflows') 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 -- cgit v1.2.3