Skip to content

Commit 2dffd27

Browse files
Maybe fix windows coverage
1 parent d463a4e commit 2dffd27

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/windows.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
uses: actions/checkout@v4
2222

2323
- name: Install ninja
24-
run: choco install ninja opencppcoverage
24+
run: |
25+
choco install ninja opencppcoverage
26+
echo "C:/Program Files/OpenCppCoverage" >> $GITHUB_PATH
2527
2628
- name: Install Clang
2729
if: matrix.compiler == 'clang'
@@ -41,6 +43,7 @@ jobs:
4143
-G "Ninja Multi-Config"
4244
-D CMAKE_CXX_STANDARD=${{ matrix.cxx }}
4345
-D TETL_BUILD_WERROR=ON
46+
-D TETL_BUILD_CONTRACT_CHECKS=OFF
4447
4548
- name: Configure
4649
if: matrix.compiler == 'ClangCL'
@@ -67,19 +70,20 @@ jobs:
6770
run: cmake --build build --config Debug --parallel 2
6871

6972
- name: Test -- Debug
73+
if: matrix.compiler != 'Visual Studio'
7074
run: ctest --test-dir build -C Debug --output-on-failure
7175

76+
- name: Test -- Coverage
77+
if: matrix.compiler == 'Visual Studio'
78+
working-directory: ./build
79+
run: OpenCppCoverage --export_type cobertura:coverage.xml --cover_children -- ctest -C Debug --output-on-failure
80+
7281
- name: Build -- Release
7382
run: cmake --build build --config Release --parallel 2
7483

7584
- name: Test -- Release
7685
run: ctest --test-dir build -C Release --output-on-failure
7786

78-
- name: Coverage (MSVC)
79-
if: matrix.compiler == 'Visual Studio'
80-
working-directory: ./build
81-
run: OpenCppCoverage.exe --export_type cobertura:coverage.xml --cover_children -- ctest -C Debug
82-
8387
- uses: codecov/codecov-action@v4
8488
if: matrix.compiler == 'Visual Studio'
8589
with:

0 commit comments

Comments
 (0)