Skip to content

Commit

Permalink
Merge pull request #43 from stackbuilders/get-tested-ci
Browse files Browse the repository at this point in the history
Added `kleidukos/get-tested action` to generate CI matrix
  • Loading branch information
DavidMazarro authored Apr 30, 2024
2 parents 0311a30 + 41e0e60 commit de949e4
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,26 @@ concurrency:
cancel-in-progress: true

jobs:
haskell:
generate-matrix:
name: "Generate matrix from cabal"
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
runs-on: ubuntu-latest
strategy:
matrix:
ghc: ['8.2', '8.4', '8.6', '8.8', '8.10', '9.0', '9.2', '9.4', '9.6', '9.8']
steps:
- name: Extract the tested GHC versions
id: set-matrix
uses: kleidukos/[email protected]
with:
cabal-file: cassava-megaparsec.cabal
ubuntu-version: latest
version: 0.1.7.0

build-and-test:
name: ${{ matrix.ghc }} on ${{ matrix.os }}
needs: generate-matrix
strategy:
matrix: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit de949e4

Please sign in to comment.