Skip to content

Commit a0f16d8

Browse files
authored
[CI] Enable tools for coverage measurements (#5481)
Enable and install `compiler-rt` and coverage tools to measure SYCL runtime code coverage in CI.
1 parent d8b22bf commit a0f16d8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/sycl_linux_build_and_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ jobs:
191191
cmake --build $GITHUB_WORKSPACE/build --target install-clang-format
192192
cmake --build $GITHUB_WORKSPACE/build --target install-clang-tidy
193193
cmake --build $GITHUB_WORKSPACE/build --target install-llvm-size
194+
cmake --build $GITHUB_WORKSPACE/build --target install-llvm-cov
195+
cmake --build $GITHUB_WORKSPACE/build --target install-llvm-profdata
196+
cmake --build $GITHUB_WORKSPACE/build --target install-compiler-rt
194197
# TODO this should be resolved in CMakeLists.txt
195198
cmake --build $GITHUB_WORKSPACE/build --target install-lld || echo "skipped"
196199

buildbot/configure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def do_configure(args):
103103
print("# Default CI configuration will be applied. #")
104104
print("#############################################")
105105

106-
# For clang-format and clang-tidy
107-
llvm_enable_projects += ";clang-tools-extra"
106+
# For clang-format, clang-tidy and code coverage
107+
llvm_enable_projects += ";clang-tools-extra;compiler-rt"
108108
# libclc is required for CI validation
109109
if 'libclc' not in llvm_enable_projects:
110110
llvm_enable_projects += ';libclc'

0 commit comments

Comments
 (0)