Skip to content

Commit 1af83cc

Browse files
committed
chore: Use cargo-install action to install package
1 parent 454c373 commit 1af83cc

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18-
- name: Cache cargo registry, git, bin, and target
18+
- name: Cache cargo registry, git, and target dirs
1919
uses: actions/cache@v4
2020
with:
2121
path: |
22-
~/.cargo/bin
2322
~/.cargo/registry
2423
~/.cargo/git
2524
target
@@ -28,7 +27,15 @@ jobs:
2827
- name: Install nightly + rustfmt
2928
run: rustup update nightly && rustup default nightly && rustup component add rustfmt clippy
3029
- name: Install dylint
31-
run: cargo install --locked cargo-dylint@5.0.0 dylint-link@5.0.0
30+
uses: baptiste0928/cargo-install@v3
31+
with:
32+
crate: cargo-dylint
33+
version: 5.0.0
34+
- name: Install dylint-link
35+
uses: baptiste0928/cargo-install@v3
36+
with:
37+
crate: dylint-link
38+
version: 5.0.0
3239
- name: Format
3340
run: cargo fmt --check
3441
- name: Build

0 commit comments

Comments
 (0)