Skip to content

Commit

Permalink
ci: Improve stability of cargo-udeps in GitHub actions (#17)
Browse files Browse the repository at this point in the history
* ci: Improve stability of `cargo-udeps` in GitHub actions

- 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

* fix: inputs
  • Loading branch information
huitseeker authored Jan 10, 2024
1 parent c6a42b3 commit e8dc4db
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 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.features }}"
- uses: JasonEtco/create-an-issue@v2
if: ${{ failure() }}
env:
Expand All @@ -35,4 +39,4 @@ jobs:
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
with:
update_existing: true
filename: .github/templates/UNUSED_DEPS_ISSUE.md
filename: .github/templates/UNUSED_DEPS_ISSUE.md

0 comments on commit e8dc4db

Please sign in to comment.