Skip to content

Commit 75a7693

Browse files
chore: Install cargo udeps directly rather than using action (#819)
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.
1 parent c5289f0 commit 75a7693

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/temp-bin/cargo-udeps

16 MB
Binary file not shown.

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,9 @@ jobs:
422422
423423
runs-on: ubuntu-latest
424424

425+
permissions:
426+
contents: write
427+
425428
steps:
426429
- name: Checkout repository
427430
uses: actions/checkout@v4
@@ -430,7 +433,8 @@ jobs:
430433
uses: dtolnay/rust-toolchain@nightly
431434

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

0 commit comments

Comments
 (0)