Skip to content

fix(ci): remove invalid matrix-context job-level if in ci.yml - #484

Open
Ziinc wants to merge 2 commits into
mainfrom
fix-ci-matrix-context
Open

fix(ci): remove invalid matrix-context job-level if in ci.yml#484
Ziinc wants to merge 2 commits into
mainfrom
fix-ci-matrix-context

Conversation

@Ziinc

@Ziinc Ziinc commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • The ci job's job-level if: referenced the matrix context (matrix.kind != 'rust' ...), which GitHub Actions does not expose to jobs.<job_id>.if (only steps.<step_id>.if). This fails workflow parsing entirely — the run shows 0 jobs — breaking ci.yml on every push and PR against current main.
  • Confirmed via multiple recent main runs and nearly every open PR's ci.yml run failing identically with Unrecognized named-value: 'matrix'.
  • Fix: drop the invalid job-level 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.yml is valid YAML and the job-level if no longer references matrix
  • CI passes on this PR (job now parses and runs)
    Generated by Claude Code

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants