Skip to content

Commit

Permalink
Added kleidukos/get-tested action
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMazarro committed Feb 6, 2024
1 parent 4dc84d8 commit e7097bb
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,30 @@ concurrency:
cancel-in-progress: true

jobs:
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: dotenv.cabal
ubuntu: true
version: 0.1.6.0

build-and-test:
name: GHC ${{ matrix.ghc }} on ${{ matrix.os }}
needs: generate-matrix
runs-on: ${{ matrix.os }}
strategy:
matrix:
ghc: ["8.10", "9.0", "9.2", "9.4", "9.6"]
os: [ubuntu-latest]
include:
matrix:
include:
- os: macos-latest
ghc: "9.2"
ghc: 9.2
json: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit e7097bb

Please sign in to comment.