diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-09 08:14:57 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-09 08:14:57 -0400 |
commit | cc44bb9388acab34fdd4969ffccb314eb3e5a739 (patch) | |
tree | 2d4e1293c2ab1e788a5fd0bded869528ab176134 | |
parent | e4f615faf36e0163a5b550df9916a1e6198770b9 (diff) | |
download | ohmycal-cc44bb9388acab34fdd4969ffccb314eb3e5a739.tar.gz |
Enable unit testing in CI workflow
-rw-r--r-- | .github/workflows/cmake-multi-platform.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 61ed38b..8f342a3 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -47,12 +47,12 @@ jobs: cmake -B ${{ steps.strings.outputs.build-output-dir }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + -DBUILD_TESTING=ON -S ${{ github.workspace }} - name: Build run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} - # TODO: Write ctests - #- name: Test - # working-directory: ${{ steps.strings.outputs.build-output-dir }} - # run: ctest --build-config ${{ matrix.build_type }} + - name: Test + working-directory: ${{ steps.strings.outputs.build-output-dir }} + run: ctest --build-config ${{ matrix.build_type }} |