Commit 2dffd27 1 parent d463a4e commit 2dffd27 Copy full SHA for 2dffd27
File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 21
21
uses : actions/checkout@v4
22
22
23
23
- name : Install ninja
24
- run : choco install ninja opencppcoverage
24
+ run : |
25
+ choco install ninja opencppcoverage
26
+ echo "C:/Program Files/OpenCppCoverage" >> $GITHUB_PATH
25
27
26
28
- name : Install Clang
27
29
if : matrix.compiler == 'clang'
41
43
-G "Ninja Multi-Config"
42
44
-D CMAKE_CXX_STANDARD=${{ matrix.cxx }}
43
45
-D TETL_BUILD_WERROR=ON
46
+ -D TETL_BUILD_CONTRACT_CHECKS=OFF
44
47
45
48
- name : Configure
46
49
if : matrix.compiler == 'ClangCL'
@@ -67,19 +70,20 @@ jobs:
67
70
run : cmake --build build --config Debug --parallel 2
68
71
69
72
- name : Test -- Debug
73
+ if : matrix.compiler != 'Visual Studio'
70
74
run : ctest --test-dir build -C Debug --output-on-failure
71
75
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
+
72
81
- name : Build -- Release
73
82
run : cmake --build build --config Release --parallel 2
74
83
75
84
- name : Test -- Release
76
85
run : ctest --test-dir build -C Release --output-on-failure
77
86
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
-
83
87
- uses : codecov/codecov-action@v4
84
88
if : matrix.compiler == 'Visual Studio'
85
89
with :
You can’t perform that action at this time.
0 commit comments