From 44e7508af3abe2c7ea03555a9101fdfa742b69e3 Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Thu, 19 Nov 2026 08:50:39 +0800 Subject: [PATCH] ci: add an always-reporting Rust checks job for the ruleset to require (#4391) A skipped matrix job reports under its unexpanded name, so the per-OS Rust checks never appear on frontend-only PRs and requiring them blocked those PRs. The new job passes when the Rust matrix succeeded or was skipped. --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8399cccf4..19acbc091 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,6 +142,22 @@ jobs: if: runner.os == 'Linux' run: git diff --exit-code src/bindings.ts src-tauri/tests/commands.snap + # One check that always reports, for the ruleset to require: a skipped matrix job reports + # under its unexpanded name, so the per-OS checks never appear on frontend-only PRs. + rust-checks: + name: Rust checks + needs: [changes, rust] + if: always() + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - env: + CHANGES: ${{ needs.changes.result }} + RUST: ${{ needs.rust.result }} + run: | + echo "changes: $CHANGES, rust: $RUST" + [ "$CHANGES" = success ] && { [ "$RUST" = success ] || [ "$RUST" = skipped ]; } + # The remote development server ships as a static Linux binary (release-build.yml): # keep that build working. server: