From 17c0e154219547a855255e02ff6c5fa513d67866 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Sun, 21 Aug 2022 18:58:30 +0400 Subject: test --- .github/workflows/build_and_test.yml | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 543a7c3..e2590d3 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -24,19 +24,13 @@ 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 -D CMAKE_BUILD_TYPE=$BUILD_TYPE -B build -S . cmake --build build --config $BUILD_TYPE - name: Run tests + shell: bash working-directory: ${{ github.workspace }}/build run: | ctest -V -C $BUILD_TYPE @@ -53,22 +47,14 @@ 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 + working-directory: ./source/test/integration/${{ matrix.name }} run: | - cmake -B build -S . + cmake -D CMAKE_BUILD_TYPE=$BUILD_TYPE -B build -S . cmake --build build --config $BUILD_TYPE - working-directory: ./source/test/integration/${{ matrix.name }} - name: Run tests shell: bash + working-directory: ./source/test/integration/${{ matrix.name }}/build run: | ctest -V -C $BUILD_TYPE - working-directory: ./source/test/integration/${{ matrix.name }}/build -- cgit v1.2.3