From 44789dc2de6940f7bc604d81c61002c1cf68a4b6 Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Mon, 9 Oct 2023 16:40:10 -0700 Subject: [PATCH] Install cargo-make --- .github/workflows/coverage.yml | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 4728c95e30b..4186470552b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -21,6 +21,31 @@ jobs: ## Coverage steps + # Cargo-make boilerplate + - name: Get cargo-make version + id: cargo-make-version + run: | + echo "hash=$(cargo search cargo-make | grep '^cargo-make =' | md5sum)" >> $GITHUB_OUTPUT + shell: bash + - name: Attempt to load cached cargo-make + uses: actions/cache@v3 + id: cargo-make-cache + with: + path: | + ~/.cargo/bin/cargo-make + ~/.cargo/bin/cargo-make.exe + key: ${{ runner.os }}-make-${{ steps.cargo-make-version.outputs.hash }} + - name: Install cargo-make + if: steps.cargo-make-cache.outputs.cache-hit != 'true' + run: cargo +stable install cargo-make + + # Toolchain boilerplate + - name: Potentially override rust version with nightly + run: cargo make set-nightly-version-for-ci + - name: Show the selected Rust toolchain + run: rustup show + + # Install grcov - name: Get grcov version id: grcov-version run: | @@ -39,12 +64,7 @@ jobs: run: | cargo +stable install grcov - # Toolchain boilerplate - - name: Potentially override rust version with nightly - run: cargo make set-nightly-version-for-ci - - name: Show the selected Rust toolchain - run: rustup show - + # Actual job - run: cargo test --all-features --no-fail-fast env: CARGO_INCREMENTAL: '0'