GCC
How json2vars-setter handles GCC, and how the example workflow provisions it.
json2vars-setter integration
| Item | Value |
|---|---|
| Matrix JSON key | versions.gcc |
| Action output | versions_gcc |
| Dynamic-update strategy input | gcc-strategy (stable / latest / both) |
| Version source | see Version Sources |
Supported runners
The example matrix runs on Ubuntu / macOS:
ubuntu-latest, macos-latest
Any GitHub-hosted runner the setup action supports also works - the OS list is just the os array in your matrix JSON.
Supported versions
Example matrix (what the example workflow runs):
Latest values tracked by the dynamic-update tooling (auto-refreshed from the release APIs into the version cache):
| Field | Version |
|---|---|
stable |
15.3.0 |
latest |
16.1.0 |
Cache last updated: 2026-06-24T12:28:47.597015.
Setup action (example workflow)
gcc_test.yml provisions GCC with the matrix value json2vars-setter produced:
Note:
aminya/setup-cppinstalls a specific GCC and exportsCC/CXX. GCC's packaging is by major version, so the example matrix pins majors.
References
- Example project:
examples/gcc/ - Example workflow:
.github/workflows/gcc_test.yml - Matrix JSON:
examples/gcc/gcc_project_matrix.json