From 8e4bdb2ad7d9b6766a9e24c683062f656c4eb6ba Mon Sep 17 00:00:00 2001 From: Matthew Orris <1466844+mattheworris@users.noreply.github.com> Date: Tue, 5 Mar 2024 06:17:43 -0700 Subject: [PATCH] fix: Update grcov installation and build/test commands (#1907) # Goal The goal of this PR is to move grcov to the `stable` channel. # How to Test - Read through changes and validate. - [x] CI passed `Code Coverage` test [when a .rs file was edited] https://github.com/LibertyDSNP/frequency/actions/runs/8148373324/job/22271097267 # Discussion # Checklist - [ ] Chain spec updated - [ ] Custom RPC OR Runtime API added/changed? Updated js/api-augment. - [ ] Design doc(s) updated - [ ] Tests added - [ ] Benchmarks added - [ ] Weights updated --------- Co-authored-by: Matthew Orris <--help> --- .github/workflows/common/codecov/action.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/common/codecov/action.yml b/.github/workflows/common/codecov/action.yml index d5d81493c4..a8472d75bc 100644 --- a/.github/workflows/common/codecov/action.yml +++ b/.github/workflows/common/codecov/action.yml @@ -9,18 +9,20 @@ runs: steps: - name: Install grcov shell: bash - run: cargo +nightly-2024-03-01 install --locked grcov + run: cargo install --locked grcov - name: Build shell: bash # Limited to 10 threads max - run: cargo +nightly-2024-03-01 build -j 10 --features frequency-lint-check + run: cargo build -j 10 --features frequency-lint-check env: + RUSTC_BOOTSTRAP: 1 CARGO_INCREMENTAL: '0' RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" RUSTDOCFLAGS: "-Cpanic=abort" - name: Test shell: bash # Limited to 10 threads max - run: cargo +nightly-2024-03-01 test -j 10 --features frequency-lint-check + run: cargo test -j 10 --features frequency-lint-check env: + RUSTC_BOOTSTRAP: 1 CARGO_INCREMENTAL: '0' RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" RUSTDOCFLAGS: "-Cpanic=abort"