-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve haskell ghcup #4016
Improve haskell ghcup #4016
Conversation
@@ -33,3 +33,7 @@ Write-Host 'Installing cabal...' | |||
Choco-Install -PackageName cabal | |||
|
|||
Invoke-PesterTests -TestFile 'Haskell' | |||
|
|||
# install minimal ghcup, utilizing pre-installed msys2 at C:\msys64 | |||
Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $false, $true, $true, $false, $false, $false, $false, C:\, "", C:\msys64, C:\cabal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the arguments of the script see https://gitlab.haskell.org/haskell/ghcup-hs/-/blob/d61981bc1b8552d4ee3e007d5e110326b2f4ec21/bootstrap-haskell.ps1#L15
Hi @hasufell!
|
Sure
For CI, I don't think so. In fact, you're already doing that implicitly when using the ubuntu ppa:
Some of the reasons have been discussed here: haskell/actions#70 The main reason is that you get a consistent set of GHC versions across all platforms. Using 3 different methods (ghcup, ubuntu ppa and chocolatey) means you rely on 3 different release schedules of maintainers. On linux, ghcup is very well tested. Windows support is recent and may be discussed separately. |
@hasufell I seem to recall that there was a disk space penalty when coming from the PPA to ghcup, do you think this is something ghcup can optimise, or will we have to wait for non-profiled bindists from GHCHQ? |
@miketimofeev This repo is abandoned, nowadays everyone uses https://github.com/haskell/actions instead :) |
|
@hasufell ah beautiful, I had missed that part. :) |
In addition to everyone using haskell/actions instead, that repo is something that tries to always correctly follow whatever actions/virtual-environments does so that the github provided runners will always work and always correctly utilize pre-installed resources whenever possible. So don't worry about breaking things for the action; but a little heads-up before doing so is always nice. That said, the action is also intended to be robust to missing binaries, setup, etc., as much as reasonable so that it can be used on self hosted runners as well; so changing things in actions/virtual-environments shouldn't break anything in the haskell/actions repo. |
@miketimofeev |
@Bodigrim thanks for the explanation! |
@hasufell I'm going to close this PR, please create separate ones for Ubuntu and Windows and we will take care of macOS as, unfortunately, we don't accept macOS contributions at the moment. |
Description
Improve ghcup handling on linux and mac, freeing up disk space. Add ghcup to windows (yes, it's supported).
This isn't tested manually (I don't know how).
Check list