Skip to content

Commit

Permalink
Cache cargo-msrv tool
Browse files Browse the repository at this point in the history
  • Loading branch information
leoromanovsky committed May 16, 2024
1 parent 7201d04 commit 8a28f50
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo install cargo-msrv
- run: |
if ! command -v cargo-msrv &> /dev/null
then
cargo install cargo-msrv --locked
fi
- run: cargo msrv verify

0 comments on commit 8a28f50

Please sign in to comment.