Make sure GHC prerelease pipeline works

This commit is contained in:
Julian Ospald 2024-03-30 14:24:45 +08:00
parent 8d3f759a52
commit b9809328e8
No known key found for this signature in database
GPG Key ID: 4275CDA6A29BED43
1 changed files with 13 additions and 4 deletions

View File

@ -111,12 +111,21 @@ case $TOOL in
ghc --info
ghc -prof main.hs
[[ $(./main +RTS -s) -eq 2 ]]
ghcup_fun install cabal recommended
ghcup install cabal recommended
cabal --version
cabal update
cabal install --lib --package-env=. clock
# https://github.com/haskell/ghcup-hs/issues/966
cabal install --lib --package-env=. hashable
case "${CHANNEL}" in
Prerelease|prereleasee)
cabal install --lib --package-env=. --allow-newer clock
# https://github.com/haskell/ghcup-hs/issues/966
cabal install --lib --package-env=. --allow-newer --constraint='filepath <1.5' hashable
;;
*)
cabal install --lib --package-env=. clock
# https://github.com/haskell/ghcup-hs/issues/966
cabal install --lib --package-env=. hashable
;;
esac
case "$(uname -s)" in
MSYS_*|MINGW*)
;;