From d5248847998f17577e5023777e120341a58cb858 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 14 Mar 2026 15:19:05 -0400 Subject: [PATCH] Run CI tests using CTest when possible --- .github/workflows/testing.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index ec197a56..9f5031b0 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -31,7 +31,7 @@ jobs: - name: Build & install using CMake if: matrix.buildsys == 'cmake' run: | - cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} -DSANITIZERS=ON -DMORE_WARNINGS=ON + cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} -DSANITIZERS=ON -DMORE_WARNINGS=ON -DTESTS_OS_NAME=${{ matrix.os }} cmake --build build -j --verbose sudo cmake --install build --verbose - name: Package binaries @@ -66,10 +66,15 @@ jobs: shell: bash run: | test/fetch-test-deps.sh --get-deps ${{ matrix.os }} - - name: Run tests + - name: Run tests using our script + if: matrix.buildsys == 'make' shell: bash run: | CXX=${{ matrix.cxx }} test/run-tests.sh --os ${{ matrix.os }} + - name: Run tests using CTest + if: matrix.buildsys == 'cmake' + run: | + cmake --build build --target test macos-static: runs-on: macos-14