Skip to content

Crystal

How json2vars-setter handles Crystal, and how the example workflow provisions it.

json2vars-setter integration

Item Value
Matrix JSON key versions.crystal
Action output versions_crystal
Dynamic-update strategy input crystal-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):

1
2
3
4
5
6
7
8
{
  "versions": {
    "crystal": [
      "1.19.2",
      "1.20.2"
    ]
  }
}

Latest values tracked by the dynamic-update tooling (auto-refreshed from the release APIs into the version cache):

Field Version
stable 1.19.2
latest 1.20.2

Cache last updated: 2026-06-24T12:28:43.551556.

Setup action (example workflow)

crystal_test.yml provisions Crystal with the matrix value json2vars-setter produced:

1
2
3
4
- name: Set up Crystal
  uses: crystal-lang/install-crystal@v1.9.2
  with:
    crystal: ${{ matrix.crystal-version }}

References