-
Notifications
You must be signed in to change notification settings - Fork 54
Support GHC 9.2 #55
Comments
I think the problem is |
It checks ghcup and all other installs by pre-computing the path and checking that a binary exists there. This unfortunately assumes that GHC is named predictably, which for the alphas is not the case (eg ghcup install 9.2 gives you ghc-9.2.0.20210422) It should theoretically be possible to be more dynamic with this by looking for The reason knowing the path is necessary is because I don't have a consistent way to query it's location in order to add it to github's env file. Particularly across multiple tools (chocolatey, ghcup, apt, etc) and multiple operating systems. It's a bit difficult to make minimal assumptions yet still be quick in the happy path case, which are both things that are very important for keeping CI times and costs down :) Long story short is I'm definitely open to the idea of being able to support alpha versions of ghc (which basically amounts to being more dynamic in figuring out the installed path, I believe) |
I see, thanks. I don't think I'll have a go at it, not that keen on setting up a local CI environment and GHC 9.2 will get a release candidate sooner or later. Cheers for clearing up the situation. |
I think having Actions support for pre-releases could go a long way toward helping library maintainers get new |
larskuhtz#1 implements experimental support for ghc-9.2. It's a bit hacky, but works for me. |
As of November 7, chocolatey has GHC 9.2, so I can finally release 9.2 into the wild. Should "just work", now. The next big update for this action, I suspect, is going to be finalizing integration with the preinstalled ghcup for Windows and using ghcup by default for stack, ghc, and cabal installs, falling back to chocolatey and/or the old PPA only when necessary. But for now, 9.2.1 works. Have fun :) |
I noticed alpha releases of GHC 9.2 are rolling out. I use
haskell/actions/setup
for the hugely convenient setup it does. I was wondering whether I could use it to test 9.2 releases as well, so I had a go.I tried adding it to my CI's GHC versions list, but the setup step fails. However, not before appearing to work (after falling back to
ghcup
). Here is the relevant part of a build log. (also copied below)GHC 9.2 appears to be successfully installed and set as default through ghcup, but the step then ends with an error. Is this intended? The only questionable thing I see is downloading the Fedora version while it's running Ubuntu, but I don't imagine any issues there.
The text was updated successfully, but these errors were encountered: