Skip to content

Commit e581cb0

Browse files
authored
Use julia-version for matrix job creation (#145)
1 parent abd1728 commit e581cb0

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/CI.yaml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,33 @@ on:
1313
- ".codecov.yaml"
1414
- ".github/workflows/CI.yaml"
1515
jobs:
16+
version:
17+
name: Resolve Julia Versions
18+
# These permissions are needed to:
19+
# - Checkout the Git repository (`contents: read`)
20+
permissions:
21+
contents: read
22+
runs-on: ubuntu-latest
23+
outputs:
24+
json: ${{ steps.julia-version.outputs.resolved-json }}
25+
steps:
26+
- uses: actions/checkout@v6 # Needed for "min" to access the Project.toml
27+
- uses: julia-actions/[email protected]
28+
id: julia-version
29+
with:
30+
versions: |
31+
- min # Project's oldest supported version
32+
- lts # Long-Term Stable
33+
- 1 # Latest release
34+
1635
test:
1736
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
37+
needs: version
1838
runs-on: ${{ matrix.os }}
1939
strategy:
2040
fail-fast: false
2141
matrix:
22-
version:
23-
- "min" # Oldest supported version
24-
- "lts" # LTS
25-
- "1" # Latest Release
42+
version: ${{ fromJSON(needs.version.outputs.json) }}
2643
os:
2744
- ubuntu-latest
2845
arch:

0 commit comments

Comments
 (0)