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