summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2021-08-23 21:45:33 +0700
committerPierre Joye <pierre.php@gmail.com>2021-08-23 21:45:33 +0700
commitd9d98c04bfddbff6b9b1f1e8624a8de408e15c6f (patch)
treef7b4517af91543a1d87ec3237db0860915c4fe88 /.github
parentec1b1bbfa36cc78870be63c1922fb98a52ea19f5 (diff)
downloadlibgd-d9d98c04bfddbff6b9b1f1e8624a8de408e15c6f.tar.gz
split tests steps for windows and ubuntu
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cmake-release-build.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/.github/workflows/cmake-release-build.yml b/.github/workflows/cmake-release-build.yml
index 195ddd6..85411d7 100644
--- a/.github/workflows/cmake-release-build.yml
+++ b/.github/workflows/cmake-release-build.yml
@@ -118,8 +118,8 @@ jobs:
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel 4
- - name: Test
- if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'windows')
+ - name: Test Ubuntu
+ if: contains(matrix.os, 'ubuntu')
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
@@ -127,6 +127,14 @@ jobs:
echo "LSAN_OPTIONS=suppressions=${{ github.workspace }}/suppressions/lsan.supp" >> $GITHUB_ENV
CTEST_OUTPUT_ON_FAILURE=1 ctest -C ${{env.BUILD_TYPE}}
+ - name: Test Windows
+ if: contains(matrix.os, 'windows')
+ working-directory: ${{github.workspace}}/build
+ # Execute tests defined by the CMake configuration.
+ # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
+ run: |
+ CTEST_OUTPUT_ON_FAILURE=1 ctest -C ${{env.BUILD_TYPE}}
+
- name: Configure CMake ASAN Ubuntu
if: contains(matrix.os, 'ubuntu')
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.