fix(ci): remove invalid matrix-context job-level if in ci.yml - #484
Open
Ziinc wants to merge 2 commits into
Open
fix(ci): remove invalid matrix-context job-level if in ci.yml#484Ziinc wants to merge 2 commits into
Ziinc wants to merge 2 commits into
Conversation
GitHub Actions does not expose the matrix context to jobs.<job_id>.if, only to steps.<step_id>.if. Referencing matrix.kind there fails workflow parsing entirely (0 jobs run), breaking CI on every push and PR.
Ziinc
force-pushed
the
fix-ci-matrix-context
branch
from
September 13, 2026 18:32
7d7c054 to
9eca83d
Compare
This was referenced Sep 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cijob's job-levelif:referenced thematrixcontext (matrix.kind != 'rust' ...), which GitHub Actions does not expose tojobs.<job_id>.if(onlysteps.<step_id>.if). This fails workflow parsing entirely — the run shows 0 jobs — breakingci.ymlon every push and PR against currentmain.mainruns and nearly every open PR'sci.ymlrun failing identically withUnrecognized named-value: 'matrix'.if:block. All rust-vs-non-rust step gating already exists at the step level (matrix.kind == 'rust', etc.), so removing this restores a parseable, working workflow. This trades away the job-level early-skip optimization for rust-unrelated PRs (rust toolchain/deps steps now run and immediately no-op) in exchange for CI actually running at all.Test plan
.github/workflows/ci.ymlis valid YAML and the job-levelifno longer referencesmatrixGenerated by Claude Code