Commit Graph
9 Commits
Author SHA1 Message Date
Julian Ospald c92736d124 Don't clean up haddock and profiling libs on MacOS (#7069)
This was initially meant to save space in docker containers,
but breaks several use cases and runner images shouldn't have
space constraints.
2023-02-09 21:47:25 +01:00
Julian Ospald 3f07514a44 Don't clean up haddock and profiling libs on Linux (#6972)
This was initially meant to save space in docker containers,
but breaks several use cases and runner images shouldn't have
space constraints.

Also fixes: https://github.com/haskell/actions/issues/176
2023-02-09 21:46:40 +01:00
Julian Ospald b38865e056 Make sure GHCUP_INSTALL_BASE_PREFIX is set (#6770)
We use it during installation and add it to PATH, but then
don't instruct ghcup to actually use this directory at runtime.

This leads to:

1. ghcup is in /usr/local/.ghcup/bin/
2. `ghcup install cabal latest` will actually install into ~/.ghcup/bin/
3. since ~/.ghcup/bin/ is not in PATH, but /usr/local/.ghcup/bin/ is,
   the new binary is not visible to the user

This issues does not exist on darwin, because there we use
~/.ghcup/bin/.

https://downloads.haskell.org/ghcup/tmp/aarch64-linux-ghcup-0.1.18.1
2023-01-02 10:58:35 +01:00
Julian Ospald 1e628422a3 Don't install stack install hook
See https://github.com/commercialhaskell/stack/issues/5895

Stack feature is documented here:
  https://docs.haskellstack.org/en/stable/yaml_configuration/#ghc-installation-customisation

It's recommended, but probably too unexpected for CI.
It means stack will not install GHC on its own, but through GHCup.
2022-10-10 17:54:22 +08:00
Julian Ospald 1fb7d122d1 Expose ghcup binary to PATH on windows (#4264)
* Expose ghcup binary to PATH on windows

The bootstrap-haskell.ps1 script uses
'[System.EnvironmentVariableTarget]::User' instead of
'[System.EnvironmentVariableTarget]::Machine', so it appears
ghcup env vars and PATH update never make it. Do these manually
for now.

* Set CABAL_DIR and make sure config is adjusted

The config adjustment usually includes adding msys2 directories,
so cabal can find `pkg-config` and libraries, e.g.:

+ C: \ghcup\msys64\mingw64\bin
+ extra-include-dirs: C:\ghcup\msys64\mingw64\include
+ extra-lib-dirs: C:\ghcup\msys64\mingw64\lib
- extra-prog-path: C:\cabal\bin
+ extra-prog-path: C:\ghcup\bin,

* Expose cabal dir to PATH as well

* Use Set-SystemVariable

* Fix tests

* Use hardcoded cabal dir

* Fix bootstrap-haskell

* Move test after installation

* Print ghcup installation message

* Don't adjust cabal.config (to include mingw paths)

This may break setups.
2021-12-10 11:23:44 +03:00
Julian Ospald 0d16297bf7 [Ubuntu] Simplify ghcup code (#4126) 2021-09-22 19:32:16 +03:00
Julian Ospald db5e4084fe Fix unnecessary /usr/bin/ghc symlink (#4095) 2021-09-16 10:06:33 +03:00
Julian Ospald ee69b89103 Use ghcup to install GHC on linux and remove docs and profiling libs (#4043) 2021-09-10 16:17:15 +03:00
Julian Ospald a9ac553edd Install ghcup on windows (#4044) 2021-09-10 16:16:54 +03:00