5151 container :
5252 env :
5353 CC : ${{ matrix.compiler == 'LLVM' && 'clang' || 'gcc' }}
54+ CFLAGS : --coverage
5455 CXX : ${{ matrix.compiler == 'LLVM' && 'clang++' || 'g++' }}
56+ CXXFLAGS : --coverage
5557 image : ${{ matrix.image }}
5658 steps :
5759 - name : Install `git` (openSUSE)
7072 - name : Test `mod_tile`
7173 uses : ./.github/actions/test
7274
75+ - name : Process & Report `mod_tile` coverage results
76+ uses : ./.github/actions/coverage
77+ if : |
78+ matrix.build_system == 'CMake' &&
79+ matrix.compiler != 'LLVM' &&
80+ matrix.image != 'opensuse/leap:15' &&
81+ matrix.image != 'ubuntu:rolling'
82+
7383 - name : Install `mod_tile`
7484 uses : ./.github/actions/install
7585
96106 container :
97107 env :
98108 CC : ${{ matrix.compiler == 'LLVM' && 'clang' || 'gcc' }}
109+ CFLAGS : --coverage
99110 CXX : ${{ matrix.compiler == 'LLVM' && 'clang++' || 'g++' }}
111+ CXXFLAGS : --coverage
100112 image : ${{ matrix.image }}
101113 steps :
102114 - name : Checkout code
@@ -111,11 +123,17 @@ jobs:
111123 - name : Test `mod_tile`
112124 uses : ./.github/actions/test
113125
126+ - name : Process & Report `mod_tile` coverage results
127+ uses : ./.github/actions/coverage
128+ if : matrix.build_system == 'CMake'
129+
114130 - name : Install `mod_tile`
115131 uses : ./.github/actions/install
116132
117133 macOS :
118134 env :
135+ CFLAGS : --coverage
136+ CXXFLAGS : --coverage
119137 LDFLAGS : -undefined dynamic_lookup
120138 LIBRARY_PATH : /usr/local/lib
121139 TEST_PARALLEL_LEVEL : 1
@@ -161,14 +179,22 @@ jobs:
161179 - name : Test `mod_tile`
162180 uses : ./.github/actions/test
163181
182+ - name : Process & Report `mod_tile` coverage results
183+ uses : ./.github/actions/coverage
184+ with :
185+ lcov-extra-options : --ignore-errors gcov --ignore-errors inconsistent
186+ if : matrix.build_system == 'CMake'
187+
164188 - name : Install `mod_tile`
165189 uses : ./.github/actions/install
166190
167191 FreeBSD :
168192 continue-on-error : true
169193 env :
170194 BUILD_PARALLEL_LEVEL : 2
195+ CFLAGS : --coverage
171196 CTEST_HOST : localhost
197+ CXXFLAGS : --coverage
172198 LIBRARY_PATH : /usr/local/lib
173199 TEST_PARALLEL_LEVEL : 2
174200 TMPDIR : /tmp
@@ -221,5 +247,8 @@ jobs:
221247 - name : Test `mod_tile`
222248 uses : ./.github/actions/test
223249
250+ - name : Process & Report `mod_tile` coverage results
251+ uses : ./.github/actions/coverage
252+
224253 - name : Install `mod_tile`
225254 uses : ./.github/actions/install
0 commit comments