Skip to content

Commit

Permalink
Run CTest on Windows via GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
thbeu committed Mar 9, 2024
1 parent 4969d78 commit f412bc0
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,20 @@ jobs:
uses: actions/checkout@v4

- name: Configure (${{ matrix.configuration }})
run: cmake -S . -Bbuild -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DCMAKE_UNITY_BUILD=ON -DCMAKE_COMPILE_WARNING_AS_ERROR=ON
run: |
if [ "${{ matrix.compiler }}" == "msvc" ]; then
cmake -S . -Bbuild -DCMAKE_UNITY_BUILD=ON -DCMAKE_COMPILE_WARNING_AS_ERROR=ON -DBUILD_TESTING=ON -DBASH_EXECUTABLE="C:/Program Files/Git/bin/bash.exe"
else
cmake -S . -Bbuild -DCMAKE_BUILD_TYPE=${{ matrix.configuration }} -DCMAKE_UNITY_BUILD=ON -DCMAKE_COMPILE_WARNING_AS_ERROR=ON -DBUILD_TESTING=ON
fi
- name: Build with ${{ matrix.compiler }}
run: cmake --build build
run: |
if [ "${{ matrix.compiler }}" == "msvc" ]; then
cmake --build build --config ${{ matrix.configuration }}
else
cmake --build build
fi
- name: Test
run: cd build && ctest -V .
run: ctest --test-dir build --build-config ${{ matrix.configuration }} --verbose

0 comments on commit f412bc0

Please sign in to comment.