ci: Don't fail the bench job if the cache is missing #1439
Workflow file for this run
This file contains 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: Machete | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: ["main"] | |
paths-ignore: ["*.md", "*.png", "*.svg", "LICENSE-*"] | |
merge_group: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
machete: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Install Rust | |
uses: ./.github/actions/rust | |
with: | |
tools: cargo-machete | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check for unused dependencies | |
run: | | |
# --with-metadata has false positives, see https://github.com/bnjbvr/cargo-machete/issues/127 | |
cargo machete |