Skip to content

Commit

Permalink
ci: Improve stability of cargo-udeps in GitHub actions
Browse files Browse the repository at this point in the history
- Updated the execution process for `cargo-udeps` in GitHub actions.
- Enhanced stability by using `RUSTC_BOOTSTRAP` variable in `unused-deps.yml`.

THis should help solve lurk-lang/arecibo#247
  • Loading branch information
huitseeker committed Jan 10, 2024
1 parent c6a42b3 commit adec27b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/unused-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ jobs:
# udeps requires nightly
- uses: dtolnay/rust-toolchain@nightly
- uses: taiki-e/install-action@cargo-udeps
- name: Check for unused dependencies
run: cargo udeps --lib --features "${{ inputs.repository }}"
# Normally running cargo-udeps requires use of a nightly compiler
# In order to have a more stable and less noisy experience, lets instead
# opt to use the stable toolchain specified via the 'rust-toolchain' file
# and instead enable nightly features via 'RUSTC_BOOTSTRAP'
- name: run cargo-udeps
run: RUSTC_BOOTSTRAP=1 cargo udeps --lib --features "${{ inputs.repository }}"
- uses: JasonEtco/create-an-issue@v2
if: ${{ failure() }}
env:
Expand Down

0 comments on commit adec27b

Please sign in to comment.