Skip to content

Commit

Permalink
Install cargo-binutils
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Nov 14, 2023
1 parent e378833 commit b99f81c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ jobs:
- name: Set toolchain override with sudo
# yamllint disable rule:line-length
run: sudo /home/runner/.cargo/bin/rustup override set ${{ matrix.toolchain }}
- name: Install cargo-binutils
run: sudo PATH=$GITHUB_WORKSPACE/.cargo/bin:$PATH PROFILE=1 cargo install cargo-binutils
- name: Add component llvm-tools-preview
run: sudo /home/runner/.cargo/bin/rustup component add llvm-tools-preview
- name: Run all tests on ${{ matrix.toolchain }} toolchain with profiling
run: sudo PATH=$GITHUB_WORKSPACE/.cargo/bin:$PATH PROFILE=1 make -f Makefile sudo_test
- name: Merge raw coverage files
run: |
sudo PATH=$GITHUB_WORKSPACE/.cargo/bin:$PATH llvm-profdata merge --sparse *.profraw -o result.profdata
sudo PATH=$GITHUB_WORKSPACE/.cargo/bin:$PATH rust-profdata merge --sparse *.profraw -o result.profdata
sudo rm *.profraw
- name: Generate coverage report
run: sudo PATH=$GITHUB_WORKSPACE/.cargo/bin:$PATH llvm-cov report -object $(find target/debug/deps/ -regex ".*devicemapper-[0-9a-f]*") -instr-profile=result.profdata --summary-only
run: sudo PATH=$GITHUB_WORKSPACE/.cargo/bin:$PATH rust-cov report -object $(find target/debug/deps/ -regex ".*devicemapper-[0-9a-f]*") -instr-profile=result.profdata --summary-only

0 comments on commit b99f81c

Please sign in to comment.