From 9bcfd7d966bc276a738e6f293b8474fa9f2cda1a Mon Sep 17 00:00:00 2001 From: Melfely Date: Wed, 9 Sep 2026 11:03:41 -0500 Subject: [PATCH] feat: reduced number of steps. Updated tool versions Properly uses the action workflow tools that were in use before. By using the rust installer action, to also install the tools I need. Setup to use the cargo-cache installer for cargo-cross rather than a manual install, this should allow caching between runs --- .gitea/workflows/lint.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index 2812a83..277e9a6 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -16,22 +16,18 @@ jobs: - name: Setup Rust uses: dtolnay/rust-toolchain@stable - - - name: Install cargo fmt - run: rustup component add rustfmt - - - name: Install cargo clippy - run: rustup component add clippy - - - name: Install cargo sort - uses: taiki-e/cache-cargo-install-action@caa6f48d18d42462f9c30df89e2b4f71a42b7c2c # v2.0.1 with: - tool: cargo-sort@1.0.9 + components: rustfmt, clippy + + - name: Install cargo sort + uses: taiki-e/cache-cargo-install-action@v3 # v3 + with: + tool: cargo-sort - name: Install cargo machete - uses: taiki-e/cache-cargo-install-action@caa6f48d18d42462f9c30df89e2b4f71a42b7c2c # v2.0.1 + uses: taiki-e/cache-cargo-install-action@v3 # v3 with: - tool: cargo-machete@0.7.0 + tool: cargo-machete - name: Cache cargo dependencies uses: actions/cache@v4 @@ -73,7 +69,9 @@ jobs: targets: x86_64-unknown-linux-musl - name: Install Cross - run: cargo install cargo-cross + uses: taiki-e/cache-cargo-install-action@v3 # v3 + with: + tool: cargo-cross - name: Cache cargo dependencies uses: actions/cache@v4