From 3e810d0366f3d62b0095648f59d6c4c01fb4f30b Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Wed, 30 Dec 2020 18:07:59 +0900 Subject: [PATCH] Download cargo-udeps from GitHub Actions --- .github/workflows/verify.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index f8c2d73b..f3aa07de 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -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/install@v0.1 - 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: