Skip to content

Commit

Permalink
chore: Install cargo udeps directly rather than using action (#819)
Browse files Browse the repository at this point in the history
The `cargo-udeps-action` has not been updated in more than a year and no longer operates on GitHub's Ubuntu runner.

Use a more recent pre-built binary to avoid this.

Workaround for aig787/cargo-udeps-action#6 and est31/cargo-udeps#294.
  • Loading branch information
scouten-adobe authored Jan 7, 2025
1 parent c5289f0 commit 75a7693
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Binary file added .github/temp-bin/cargo-udeps
Binary file not shown.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,9 @@ jobs:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -430,7 +433,8 @@ jobs:
uses: dtolnay/rust-toolchain@nightly

- name: Run cargo-udeps
uses: aig787/cargo-udeps-action@v1
with:
version: latest
args: --all-targets --all-features
run: |
mv ./.github/temp-bin/cargo-udeps /home/runner/.cargo/bin/cargo-udeps
cargo udeps --all-targets --all-features
# NOTE: Using pre-built binary as a workaround for
# https://github.com/aig787/cargo-udeps-action/issues/6.

0 comments on commit 75a7693

Please sign in to comment.