This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Description
https://github.com/Kleidukos/get-tested could be provided in a more ergonomic way to encourage package maintainers to declare supported compiler versions in their cabal files.
cc @hazelweakly
Example usage
jobs:
generateMatrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout base repo
uses: actions/checkout@v3
- name: Extract the tested GHC versions
id: set-matrix
uses: actions/haskell/get-tested@v2
tests:
name: ${{ matrix.ghc }} on ${{ matrix.os }}
needs: generateMatrix
runs-on: ${{ matrix.os }}
strategy:
matrix: ${{ fromJSON(needs.generateMatrix.outputs.matrix) }}
steps:
- name: Checkout base repo
uses: actions/checkout@v3
- name: Set up Haskell
id: setup-haskell
uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: 'latest'
caching-keys: |
${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
${{ runner.os }}-${{ matrix.ghc }}-
- name: Configure
run: ./.github/workflows/install-libsodium.sh
- name: Freeze
run: cabal freeze
- name: Build
run: cabal build libsodium-bindings
- name: Test
run: cabal test libsodium-bindings
Stuff to figure out: