Skip to content

Commit

Permalink
Install cargo-make
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Oct 9, 2023
1 parent 7f9d8d3 commit 44789dc
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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'
Expand Down

0 comments on commit 44789dc

Please sign in to comment.