From fd87709f6107b47e3b3cdf3c63fa04feb89de8ec Mon Sep 17 00:00:00 2001 From: Kayshen-X Date: Tue, 5 May 2026 12:23:45 +0800 Subject: [PATCH] ci: add explicit cargo build --examples step (Phase B+C Gate CONCERN-C1 fix) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit spec §1.2 acceptance #7 calls for cargo build --examples --workspace 三 OS PASS in CI. Previously cargo build --workspace + cargo clippy --all-targets were considered equivalent (clippy with --all-targets compiles examples), but Phase B+C Gate codex review CONCERN-C1 said the explicit step should be in the workflow for unambiguous acceptance trace. Adds cargo build --examples --workspace --target --release between cargo build --workspace and cargo test on host runners. Skipped on cross-arch check_only matrix (cross examples build is out of scope; test runners cover real arch builds). --- .github/workflows/rust-multiplatform.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/rust-multiplatform.yml b/.github/workflows/rust-multiplatform.yml index b704651c0..a9ca12f3f 100644 --- a/.github/workflows/rust-multiplatform.yml +++ b/.github/workflows/rust-multiplatform.yml @@ -92,6 +92,9 @@ jobs: - name: Build (host) if: matrix.cross == false && matrix.check_only != true run: cargo build --workspace --target ${{ matrix.target }} --release + - name: Build examples (host, spec §1.2 acceptance #7) + if: matrix.cross == false && matrix.check_only != true + run: cargo build --examples --workspace --target ${{ matrix.target }} --release - name: Check (cross-arch host, e.g. macos-x86_64 from Apple Silicon) if: matrix.check_only == true run: cargo check --workspace --target ${{ matrix.target }}