Fix Cargo-Machete Workflow (#5745)

As cargo machete now uses rust edition2024 we cannot use the older rust
version - we need to install the newest on the runner

* [ ] I have followed the instructions in the PR template

---------

Co-authored-by: lucasmerlin <lucasmeurer96@gmail.com>
This commit is contained in:
Nicolas 2025-02-27 15:24:10 +01:00 committed by GitHub
parent 42a88b677c
commit 0521caed2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 3 deletions

View File

@ -6,7 +6,13 @@ jobs:
cargo-machete:
runs-on: ubuntu-latest
steps:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.85
- name: Machete install
run: cargo install cargo-machete --locked
- name: Checkout
uses: actions/checkout@v3
- name: Machete
run: cargo install cargo-machete --locked && cargo machete
uses: actions/checkout@v4
- name: Machete Check
run: cargo machete