Skip to content

Commit a1f4ff1

Browse files
mcbartonvgvassilev
authored andcommitted
Speed up running of Ubuntu ci jobs
1 parent a6def3e commit a1f4ff1

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

Diff for: .github/workflows/ci.yml

+17-20
Original file line numberDiff line numberDiff line change
@@ -482,22 +482,19 @@ jobs:
482482
clang-runtime: '17'
483483
cling: Off
484484
cppyy: On
485-
coverage: true
486485
- name: ubu22-x86-gcc12-clang-repl-16-cppyy
487486
os: ubuntu-22.04
488487
compiler: gcc-12
489488
clang-runtime: '16'
490489
cling: Off
491490
cppyy: On
492-
coverage: true
493491
- name: ubu22-x86-gcc9-clang13-cling-cppyy
494492
os: ubuntu-22.04
495493
compiler: gcc-9
496494
clang-runtime: '13'
497495
cling: On
498496
cling-version: '1.0'
499497
cppyy: On
500-
coverage: true
501498
#FIXME: Windows CppInterOp tests expected to fail
502499
#until https://github.com/compiler-research/CppInterOp/issues/188 is solved
503500
- name: win2022-msvc-clang-repl-18
@@ -915,6 +912,23 @@ jobs:
915912
cmake --build . --config ${{ env.BUILD_TYPE }} --target check-cppinterop --parallel ${{ env.ncpus }}
916913
cd ..
917914
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+
918932
- name: Build and Install cppyy-backend on Unix Systems
919933
if: ${{ (runner.os != 'windows') && (matrix.cppyy == 'On') }}
920934
run: |
@@ -1039,23 +1053,6 @@ jobs:
10391053
export
10401054
echo $GITHUB_ENV
10411055
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-
10591056
- name: Setup tmate session
10601057
if: ${{ failure() && runner.debug }}
10611058
uses: mxschmitt/action-tmate@v3

0 commit comments

Comments
 (0)