-
Notifications
You must be signed in to change notification settings - Fork 54
Incorporate get-tested as an action #189
Comments
@michaelpj I believe this is relevant to your experiment on the HLS repo |
HLS has many packages so putting all the information in the cabal files would be a lot of duplication, which defeats the point a bit. What I'm trying to do in that PR is reduce the duplication that we already have. I'm sure it's a different story for single-package repos! |
Thanks for the clarification! :) |
@Kleidukos: Thanks for pointing to your action and workflow! Very useful!
Could you spell out your intent, i.e., what you mean by "could be provided in a more ergonomic way"? Observe: |
Okay so at the moment, its usage looks like this: jobs:
generateMatrix:
name: "Generate matrix from cabal"
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout base repo
uses: actions/checkout@v2
- name: Extract the tested GHC versions
id: set-matrix
run: |
wget https://github.com/Kleidukos/get-tested/releases/download/v0.1.3.0/get-tested-0.1.3.0-linux-amd64 -O get-tested
chmod +x get-tested
./get-tested --ubuntu --macos text-display.cabal >> $GITHUB_OUTPUT and I'd like to provide an action so that it may be used as: 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/test-matrix # proper GH Action |
Ah, ok, so there would be two steps:
Concerning 2., I have reservations because GitHub Marketplace does not support our "host multiple actions in one repo" approach, see #141. I suggest to host it yourself until this issue is settled. Concerning 1., having such an action would be great indeed!
|
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
Stuff to figure out:
The text was updated successfully, but these errors were encountered: