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

View File

@ -111,12 +111,21 @@ case $TOOL in
ghc --info ghc --info
ghc -prof main.hs ghc -prof main.hs
[[ $(./main +RTS -s) -eq 2 ]] [[ $(./main +RTS -s) -eq 2 ]]
ghcup_fun install cabal recommended ghcup install cabal recommended
cabal --version cabal --version
cabal update cabal update
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 cabal install --lib --package-env=. clock
# https://github.com/haskell/ghcup-hs/issues/966 # https://github.com/haskell/ghcup-hs/issues/966
cabal install --lib --package-env=. hashable cabal install --lib --package-env=. hashable
;;
esac
case "$(uname -s)" in case "$(uname -s)" in
MSYS_*|MINGW*) MSYS_*|MINGW*)
;; ;;