Skip to content

Commit 6d0dc96

Browse files
committed
install cargo-hack faster
1 parent dbce150 commit 6d0dc96

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci-master.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
with:
5050
toolchain: ${{ matrix.version }}
5151

52-
- name: Install cargo-hack
53-
run: cargo install cargo-hack
52+
- uses: taiki-e/cache-cargo-install-action@v1
53+
with: { tool: cargo-hack }
5454

5555
- name: check lib
5656
if: >
@@ -119,11 +119,11 @@ jobs:
119119
uses: actions-rust-lang/setup-rust-toolchain@v1
120120
with: { toolchain: nightly }
121121

122-
- name: Install cargo-minimal-versions
123-
run: cargo install cargo-minimal-versions
122+
- uses: taiki-e/cache-cargo-install-action@v1
123+
with: { tool: cargo-minimal-versions }
124124

125-
- name: Install cargo-hack
126-
run: cargo install cargo-hack
125+
- uses: taiki-e/cache-cargo-install-action@v1
126+
with: { tool: cargo-hack }
127127

128128
- name: Check With Minimal Versions
129129
run: cargo minimal-versions check

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
with:
5151
toolchain: ${{ matrix.version }}
5252

53-
- name: Install cargo-hack
54-
run: cargo install cargo-hack
53+
- uses: taiki-e/cache-cargo-install-action@v1
54+
with: { tool: cargo-hack }
5555

5656
- name: Generate Cargo.lock
5757
run: cargo generate-lockfile

0 commit comments

Comments
 (0)