This repository was archived by the owner on Aug 2, 2025. It is now read-only.
Update dependencies #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: cargo | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/cargo.yml | |
| - Cargo.toml | |
| - Cargo.lock | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/cargo.yml | |
| - Cargo.toml | |
| - Cargo.lock | |
| jobs: | |
| check-unused-dependencies: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Read nightly toolchain | |
| id: toolchain | |
| uses: juliangruber/read-file-action@v1 | |
| with: | |
| path: ./rust-nightly-toolchain.txt | |
| - name: Install Rust nightly toolchain | |
| run: rustup toolchain install ${{ steps.toolchain.outputs.content }} | |
| - run: echo "RUSTUP_TOOLCHAIN=${{ steps.toolchain.outputs.content }}" >> $GITHUB_ENV | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo install --locked cargo-udeps@0.1.35 | |
| - run: cargo +${{ steps.toolchain.outputs.content }} udeps --all-targets |