Skip to content

Commit

Permalink
Added kleidukos/get-tested action to generate CI matrix (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMazarro authored Feb 6, 2024
1 parent 98ed20d commit b508140
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,33 @@ concurrency:
cancel-in-progress: true

jobs:
build:
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/get-tested@v0.1.6.0
with:
cabal-file: rollbar-client/rollbar-client.cabal
ubuntu: true
version: 0.1.6.0
build:
name: GHC ${{ matrix.ghc }} on ${{ matrix.os }}
needs: generate-matrix
runs-on: ${{ matrix.os }}
strategy:
matrix:
ghc-version:
- '8.8'
- '8.10'
- '9.4'
matrix: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Haskell tools
uses: haskell-actions/setup@v2
id: setup
with:
ghc-version: ${{ matrix.ghc-version }}
ghc-version: ${{ matrix.ghc }}
cabal-version: 'latest'
cabal-update: true
- name: Configure the build
Expand Down

0 comments on commit b508140

Please sign in to comment.