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 }}