From 97d3d7a41c560824a21a3bf978f39cc7852b14aa Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Tue, 22 Oct 2024 19:45:21 +0100 Subject: [PATCH] Run tests in CI --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a4f20e2..8b56bb2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,9 +60,12 @@ jobs: -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + -DONDSELSOLVER_BUILD_TESTS=ON -S ${{ github.workspace }} - name: Build # Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} -j 2 + - name: Test + run: ctest --test-dir ${{ steps.strings.outputs.build-output-dir }}