From 1592a78e4815ed3b12d97080fda661458157561e Mon Sep 17 00:00:00 2001 From: panos Date: Wed, 1 Apr 2026 00:32:57 +0800 Subject: [PATCH] ci(build): replace full builds with cargo check - Replace `cargo build --all` (debug) + `cargo build --all --release` with `cargo check --all --all-targets` - cargo check only does type-checking without producing binaries, ~4x faster while still catching compilation errors and warnings - Release builds should only happen in release workflow, not PR CI - Remove unnecessary rustfmt/clippy components from build job (those are installed in the lint workflow) --- .github/workflows/build.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a406645..01eac18 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,16 +27,11 @@ jobs: - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt, clippy - name: Cache Rust build artifacts uses: Swatinem/rust-cache@v2 with: cache-on-failure: true - - name: Build debug - run: cargo build --all --verbose - - - name: Build release - run: cargo build --all --release --verbose + - name: Check compilation + run: cargo check --all --all-targets