Skip to content

Commit

Permalink
Merge pull request #51 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 May 8, 2024
2 parents 64eccab + 9ce6763 commit d5d5e77
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,26 @@ concurrency:
cancel-in-progress: true

jobs:
haskell:
strategy:
matrix:
ghc:
- "8.10"
- "8.4.3"
- "9.4.7"
generate-matrix:
name: "Generate matrix from cabal"
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
runs-on: ubuntu-latest
steps:
- name: Extract the tested GHC versions
id: set-matrix
uses: kleidukos/[email protected]
with:
cabal-file: atomic-write.cabal
ubuntu-version: latest
version: 0.1.7.0

build-and-test:
name: GHC ${{ 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
3 changes: 3 additions & 0 deletions atomic-write.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ copyright: 2015-2019 Stack Builders Inc.
category: System
build-type: Simple
cabal-version: >=1.10
tested-with:
GHC ==8.4.3, GHC ==8.10.7, GHC ==9.4.7

bug-reports: https://github.com/stackbuilders/atomic-write/issues

library
Expand Down

0 comments on commit d5d5e77

Please sign in to comment.