Skip to content

Commit 3e810d0

Browse files
committed
Download cargo-udeps from GitHub Actions
1 parent 54e07a6 commit 3e810d0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/verify.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ jobs:
6262

6363
# required only if you set `languages.rust.list_dependencies_backend.kind` to `"cargo-udeps"`
6464
- name: Install cargo-udeps for Rust
65-
uses: actions-rs/[email protected]
66-
with:
67-
crate: cargo-udeps
68-
use-tool-cache: true
65+
run: |
66+
version="$(curl https://crates.io/api/v1/crates/cargo-udeps | jq -r '.crate.max_version')"
67+
wget "https://github.com/est31/cargo-udeps/releases/download/v$version/cargo-udeps-v$version-x86_64-unknown-linux-gnu.tar.gz"
68+
tar xzvf "./cargo-udeps-v$version-x86_64-unknown-linux-gnu.tar.gz" -C /tmp/
69+
echo "/tmp/cargo-udeps-v$version-x86_64-unknown-linux-gnu" >> $GITHUB_PATH
6970
7071
- name: Run tests
7172
env:

0 commit comments

Comments
 (0)