Skip to content

Commit

Permalink
ci: Add cargo-udeps
Browse files Browse the repository at this point in the history
  • Loading branch information
caspermeijn committed May 3, 2024
1 parent 9fbce8d commit 52ee095
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,27 @@ jobs:
- name: Check unused dependencies
run: cargo machete

unused_deps:
name: Check for unused dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: dtolnay/rust-toolchain@nightly
- name: install protoc
uses: taiki-e/install-action@v2
with:
tool: protoc@${{ env.PROTOC_VERSION }}
- name: install ninja
uses: ./.github/actions/setup-ninja
- name: install cargo-udeps
uses: taiki-e/install-action@cargo-udeps
- name: cargo udeps
run: cargo +nightly udeps
- name: cargo udeps all-targets
run: cargo +nightly udeps --all-targets

test:
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit 52ee095

Please sign in to comment.