Skip to content

Commit cc30e4e

Browse files
committed
chore: Use get-tested GH Action to generate runner matrix
1 parent 0311a30 commit cc30e4e

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/build.yml

+18-4
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,26 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16-
haskell:
16+
generate-matrix:
17+
name: "Generate matrix from cabal"
18+
outputs:
19+
matrix: ${{ steps.set-matrix.outputs.matrix }}
1720
runs-on: ubuntu-latest
18-
strategy:
19-
matrix:
20-
ghc: ['8.2', '8.4', '8.6', '8.8', '8.10', '9.0', '9.2', '9.4', '9.6', '9.8']
21+
steps:
22+
- name: Extract the tested GHC versions
23+
id: set-matrix
24+
uses: kleidukos/[email protected]
25+
with:
26+
cabal-file: get-tested.cabal
27+
ubuntu-version: latest
28+
version: 0.1.7.0
2129

30+
build-and-test:
31+
name: ${{ matrix.ghc }} on ${{ matrix.os }}
32+
needs: generate-matrix
33+
strategy:
34+
matrix: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
35+
runs-on: ${{ matrix.os }}
2236
steps:
2337
- name: Checkout
2438
uses: actions/checkout@v3

0 commit comments

Comments
 (0)