@@ -482,22 +482,19 @@ jobs:
482
482
clang-runtime : ' 17'
483
483
cling : Off
484
484
cppyy : On
485
- coverage : true
486
485
- name : ubu22-x86-gcc12-clang-repl-16-cppyy
487
486
os : ubuntu-22.04
488
487
compiler : gcc-12
489
488
clang-runtime : ' 16'
490
489
cling : Off
491
490
cppyy : On
492
- coverage : true
493
491
- name : ubu22-x86-gcc9-clang13-cling-cppyy
494
492
os : ubuntu-22.04
495
493
compiler : gcc-9
496
494
clang-runtime : ' 13'
497
495
cling : On
498
496
cling-version : ' 1.0'
499
497
cppyy : On
500
- coverage : true
501
498
# FIXME: Windows CppInterOp tests expected to fail
502
499
# until https://github.com/compiler-research/CppInterOp/issues/188 is solved
503
500
- name : win2022-msvc-clang-repl-18
@@ -915,6 +912,23 @@ jobs:
915
912
cmake --build . --config ${{ env.BUILD_TYPE }} --target check-cppinterop --parallel ${{ env.ncpus }}
916
913
cd ..
917
914
915
+ - name : Prepare code coverage report
916
+ if : ${{ success() && (matrix.coverage == true) }}
917
+ run : |
918
+ # Create lcov report
919
+ # capture coverage info
920
+ vers="${CC#*-}"
921
+ lcov --directory build/ --capture --output-file coverage.info --gcov-tool /usr/bin/gcov-${vers}
922
+ lcov --remove coverage.info '/usr/*' "${HOME}"'/.cache/*' ${{ github.workspace }}'/llvm-project/*' ${{ github.workspace }}'/unittests/*' --output-file coverage.info
923
+ # output coverage data for debugging (optional)
924
+ lcov --list coverage.info
925
+
926
+ - name : Upload to codecov.io
927
+ if : ${{ success() && (matrix.coverage == true) }}
928
+ uses : codecov/codecov-action@v4
929
+ with :
930
+ file : ./coverage.info
931
+
918
932
- name : Build and Install cppyy-backend on Unix Systems
919
933
if : ${{ (runner.os != 'windows') && (matrix.cppyy == 'On') }}
920
934
run : |
@@ -1039,23 +1053,6 @@ jobs:
1039
1053
export
1040
1054
echo $GITHUB_ENV
1041
1055
1042
- - name : Prepare code coverage report
1043
- if : ${{ success() && (matrix.coverage == true) }}
1044
- run : |
1045
- # Create lcov report
1046
- # capture coverage info
1047
- vers="${CC#*-}"
1048
- lcov --directory build/ --capture --output-file coverage.info --gcov-tool /usr/bin/gcov-${vers}
1049
- lcov --remove coverage.info '/usr/*' "${HOME}"'/.cache/*' ${{ github.workspace }}'/llvm-project/*' ${{ github.workspace }}'/unittests/*' --output-file coverage.info
1050
- # output coverage data for debugging (optional)
1051
- lcov --list coverage.info
1052
-
1053
- - name : Upload to codecov.io
1054
- if : ${{ success() && (matrix.coverage == true) }}
1055
- uses : codecov/codecov-action@v4
1056
- with :
1057
- file : ./coverage.info
1058
-
1059
1056
- name : Setup tmate session
1060
1057
if : ${{ failure() && runner.debug }}
1061
1058
uses : mxschmitt/action-tmate@v3
0 commit comments