Skip to content

Commit

Permalink
Tidies
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 8710c31 commit e378833
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,15 @@ jobs:
sudo apt-get -q update
sudo apt-get -y install libdevmapper-dev
- name: Set toolchain override with sudo
run: sudo /home/runner/.cargo/bin/rustup override set ${{ matrix.toolchain }} # yamllint disable rule:line-length
# yamllint disable rule:line-length
run: sudo /home/runner/.cargo/bin/rustup override set ${{ matrix.toolchain }}
- 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 # yamllint disable rule:line-length
run: sudo PATH=$GITHUB_WORKSPACE/.cargo/bin:$PATH PROFILE=1 make -f Makefile sudo_test
- name: Merge raw coverage files
run: |
sudo llvm-profdata merge --sparse *.profraw -o result.profdata
sudo PATH=$GITHUB_WORKSPACE/.cargo/bin:$PATH llvm-profdata merge --sparse *.profraw -o result.profdata
sudo rm *.profraw
- name: Generate coverage report
run: sudo 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 llvm-cov report -object $(find target/debug/deps/ -regex ".*devicemapper-[0-9a-f]*") -instr-profile=result.profdata --summary-only

0 comments on commit e378833

Please sign in to comment.