← All notes

Matrix jobs in GitHub Actions

Answer: Use jobs.<job_id>.strategy.matrix to define a matrix of different job configurations. A job will run for each possible combination of the variables. (S2)

Shaping the matrix

Running and failures

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, Running variations of jobs in a workflow - GitHub Docs, CC BY 4.0 (github/docs); GitHub Docs, Workflow syntax for GitHub Actions - GitHub Docs, CC BY 4.0 (github/docs).

Cite this

Permanent ID: iil:note:14hr8d06

iinventedlight. 2026. "Matrix jobs in GitHub Actions." iinventedlight Library, iil:note:14hr8d06, version of 2026-11-04. https://iinventedlight.com/library/notes/github-actions-matrix/. License: CC-BY-4.0.

@misc{iil_note_14hr8d06,
  author = {{iinventedlight}},
  title = {{Matrix jobs in GitHub Actions}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/github-actions-matrix/},
  note = {Permanent ID iil:note:14hr8d06. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/github-actions-matrix.md.