Skip to content

Commit 58e2367

Browse files
authored
tar: install llvm-tools before running grcov
Add a CI step to run `rustup component add llvm-tools` before generating coverage data. grcov requires llvm-profdata (part of llvm-tools) to process .profraw files; without it the coverage job fails with "couldn't find llvm-profdata".
1 parent 39dc767 commit 58e2367

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ jobs:
8282
# crate: grcov
8383
# version: latest
8484
# use-tool-cache: false
85+
- name: "`llvm-tools` ~ install"
86+
shell: bash
87+
run: |
88+
## Install the llvm-tools component to get access to `llvm-profdata`
89+
rustup component add llvm-tools
8590
- name: Generate coverage data (via `grcov`)
8691
env:
8792
# Use -Z

0 commit comments

Comments
 (0)