Skip to content

Commit b7f1a3f

Browse files
committed
chore: replace cargo install commands with taiki-e/cache-cargo-install-action in CI and CD workflows
1 parent afaa805 commit b7f1a3f

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/cd.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ jobs:
4242
- uses: actions/checkout@v4
4343
- uses: dtolnay/rust-toolchain@nightly
4444
- uses: Swatinem/rust-cache@v2
45-
- run: cargo install --locked cargo-component
46-
- run: cargo install --locked wit-bindgen-cli
45+
- uses: taiki-e/cache-cargo-install-action@v2
46+
with:
47+
tool: cargo-component,wit-bindgen-cli
4748

4849
# Configure registry
4950
- run: |

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ jobs:
1919
with:
2020
components: clippy, rustfmt
2121
- uses: Swatinem/rust-cache@v2
22-
- run: cargo install --locked cargo-machete
23-
- run: cargo install --locked cargo-sort-derives
22+
- uses: taiki-e/cache-cargo-install-action@v2
23+
with:
24+
tool: cargo-machete,cargo-sort-derives
2425

2526
# Checks
2627
- run: cargo +nightly fmt --check

0 commit comments

Comments
 (0)