Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Add support for adding ghcup release channel (-> GHC pre-releases) #108

Closed
robx opened this issue Jun 24, 2022 · 1 comment · Fixed by #175
Closed

Add support for adding ghcup release channel (-> GHC pre-releases) #108

robx opened this issue Jun 24, 2022 · 1 comment · Fixed by #175
Labels
re: ghcup Concerning setup using ghcup
Milestone

Comments

@robx
Copy link

robx commented Jun 24, 2022

(Reference: #107.)

ghcup supports installing non-standard GHC releases via so-called "release channels": https://www.haskell.org/ghcup/guide/#pre-release-channels

I'd like to propose an input to this action for adding an extra release channel. I.e.:

inputs:
  ...
  ghcup-release-channel:
    required: false
    description: "A release channel to add to ghcup via `ghcup add-release-channel`."

If set, this would mean that the action calls

ghcup add-release-channel ${ghcup-release-channel}

before the call to ghcup install.

This would add support for GHC pre-releases by allowing users to add the release channel managed at https://github.com/haskell/ghcup-metadata/blob/master/ghcup-prereleases-0.0.7.yaml.

(Ideally, the GHC HEAD support (#93) could be folded into this too at some point -- the nice thing about the ghcup metadata is that it takes care of that deb9/deb10/deb11 confusion.)

@hazelweakly
Copy link
Collaborator

I like this a lot, and I'm definitely in favor of doing it. Let me see how much energy I have for this this weekend

@andreasabel andreasabel added the re: ghcup Concerning setup using ghcup label Dec 28, 2022
@andreasabel andreasabel added this to the 2.3.3 milestone Jan 17, 2023
9999years pushed a commit to 9999years/haskell-actions that referenced this issue Mar 27, 2024
New action input `ghcup-release-channel` to provide a ghc (pre)release channel for ghcup which will be added via `ghcup config add-release-channel`.  Useful for installing ghc prereleases.  
Tested with GHC 9.6.1 alpha (9.6.0.20230111).

Fixes: haskell#108.

Co-authored-by: Andreas Abel <andreas.abel@ifi.lmu.de>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
re: ghcup Concerning setup using ghcup
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants