From b99f81c772bdbd589295aa419e072e5d5e3e7368 Mon Sep 17 00:00:00 2001 From: mulhern Date: Tue, 14 Nov 2023 13:22:01 -0500 Subject: [PATCH] Install cargo-binutils Signed-off-by: mulhern --- .github/workflows/weekly.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml index 5d2a0e83..fab7e805 100644 --- a/.github/workflows/weekly.yml +++ b/.github/workflows/weekly.yml @@ -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