Skip to content

Commit

Permalink
use cmake preset to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zerotacg committed Jun 13, 2024
1 parent 6df0ae1 commit 599e771
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,9 @@ jobs:
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: Unit Tests
working-directory: ${{ steps.strings.outputs.build-output-dir }}
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --build-config ${{ matrix.build_type }}
run: ctest --preset default

- uses: actions/upload-artifact@v4
if: (success() || failure()) && matrix.os == 'ubuntu-22.04'
Expand Down

0 comments on commit 599e771

Please sign in to comment.