Skip to content

Commit 5f25366

Browse files
authored
Update coverage bot to Ubuntu 24.04 x86 runner (#735)
1 parent cc2eb6a commit 5f25366

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ jobs:
2323
matrix:
2424
include:
2525
# Ubuntu Arm Jobs
26-
- name: ubu22-arm-gcc12-clang-repl-20-coverage
27-
os: ubuntu-22.04-arm
28-
compiler: gcc-12
29-
clang-runtime: '20'
30-
cling: Off
31-
cppyy: Off
32-
llvm_enable_projects: "clang"
33-
llvm_targets_to_build: "host;NVPTX"
34-
coverage: true
3526
- name: ubu24-arm-gcc12-clang-repl-20
3627
os: ubuntu-24.04-arm
3728
compiler: gcc-12
@@ -66,6 +57,15 @@ jobs:
6657
llvm_enable_projects: "clang"
6758
llvm_targets_to_build: "host;NVPTX"
6859
# Ubuntu X86 Jobs
60+
- name: ubu24-x86-gcc12-clang-repl-20-coverage
61+
os: ubuntu-24.04
62+
compiler: gcc-12
63+
clang-runtime: '20'
64+
cling: Off
65+
cppyy: Off
66+
llvm_enable_projects: "clang"
67+
llvm_targets_to_build: "host;NVPTX"
68+
coverage: true
6969
- name: ubu24-x86-gcc12-clang-repl-20
7070
os: ubuntu-24.04
7171
compiler: gcc-12
@@ -261,10 +261,13 @@ jobs:
261261
# Create lcov report
262262
# capture coverage info
263263
vers="${CC#*-}"
264-
lcov --directory build/ --capture --output-file coverage.info --gcov-tool /usr/bin/gcov-${vers}
265-
lcov --remove coverage.info '/usr/*' "${HOME}"'/.cache/*' ${{ github.workspace }}'/llvm-project/*' ${{ github.workspace }}'/unittests/*' --output-file coverage.info
264+
lcov --directory build/ --capture --output-file coverage.info --gcov-tool /usr/bin/gcov-${vers} --ignore-errors mismatch
265+
lcov --remove coverage.info '/usr/*' ${{ github.workspace }}'/llvm-project/*' --ignore-errors unused --output-file coverage.info
266+
lcov --remove coverage.info '${{ github.workspace }}/unittests/*' --ignore-errors unused --output-file coverage.info
267+
lcov --remove coverage.info '${{ github.workspace }}/build/*' --ignore-errors unused --output-file coverage.info
266268
# output coverage data for debugging (optional)
267269
lcov --list coverage.info
270+
rm -rf ./build/
268271
269272
- name: Upload to codecov.io
270273
if: ${{ success() && (matrix.coverage == true) }}
@@ -289,4 +292,3 @@ jobs:
289292
uses: mxschmitt/action-tmate@v3
290293
# When debugging increase to a suitable value!
291294
timeout-minutes: 30
292-

0 commit comments

Comments
 (0)