get-tested icon indicating copy to clipboard operation
get-tested copied to clipboard

Feature request: support cabal flags in the CI matrix

Open webdevred opened this issue 4 months ago • 0 comments

Hello,

I’m currently using get-tested with newest: true to build releases for the newest GHC my software supports. My cabal file also has flags like:

flag transformation
    description: Enable transformation (experimental)
    default:     False
    manual:      True

I would like my CI to build releases both with and without such flags enabled.
Probably I could do some filtering with a pattern on the description field. One way this could work is by adding the flags into the matrix as separate entries, for example:

{
  "include": [
    {
      "ghc": "9.6.6",
      "os": "windows-latest",
      "cabal_flags": []
    },
    {
      "ghc": "9.6.6",
      "os": "windows-latest",
      "cabal_flags": ["transformation","other-experimental-flag"]
    }
  ]
}

This would let CI automatically run jobs with and without the experimental features.

Would a feature like this be in scope for get-tested?

webdevred avatar Aug 28 '25 19:08 webdevred