Skip to content

Commit 9dcfb8b

Browse files
committed
feat: Cache cargo-vet binary
Signed-off-by: hashcatHitman <155700084+hashcatHitman@users.noreply.github.com>
1 parent ad3759f commit 9dcfb8b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,14 @@ jobs:
3636
persist-credentials: false
3737
- name: Install Rust
3838
run: rustup update stable && rustup default stable
39-
- name: Install cargo-vet
39+
- name: Check cache for cargo-vet
40+
id: cache-cargo-vet
41+
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
42+
with:
43+
path: ~/.cargo/bin/cargo-vet
44+
key: cargo-vet-bin-${{ env.CARGO_VET_VERSION }}
45+
- if: ${{ steps.cache-cargo-vet.outputs.cache-hit != 'true' }}
46+
name: Install cargo-vet
4047
run: cargo install --locked --version ${CARGO_VET_VERSION} cargo-vet
4148
- name: Invoke cargo-vet
4249
run: cargo vet --locked

0 commit comments

Comments
 (0)