diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 6312d68..a10b514 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -15,6 +15,8 @@ jobs: - name: Install Rust (stable) uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy - name: Cache cargo uses: actions/cache@v4 @@ -25,11 +27,6 @@ jobs: target key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} - - name: Install Rust components - run: | - rustup component add rustfmt - rustup component add clippy - - name: Format (check) run: cargo fmt --all -- --check