Skip to content

Download cargo-udeps from GitHub Actions #361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ jobs:

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

- name: Run tests
env:
Expand Down