ci: binaries-linux-x64: try latest ghc & cabal

This commit is contained in:
Simon Michael 2024-04-17 12:59:35 -10:00
parent 8bed9a6c2f
commit 7b052979b2

View File

@ -1,9 +1,9 @@
# Runs on any push to ci-linux-x64.
# Produces optimised static x64 linux binaries,
# using the GHC version below (9.0.2) and cabal.
# using the GHC version below and cabal.
# Currently runs no tests.
# Currently using ghc 9.0 to avoid segfaults with the ghc 9.2 binaries on alpine,
# possibly https://gitlab.haskell.org/ghc/ghc/-/issues/20266
# Was using ghc 9.0 to avoid segfaults with the ghc 9.2 binaries on alpine, https://gitlab.haskell.org/ghc/ghc/-/issues/20266
# Trying latest ghc 9.8 now.
name: binaries-linux-x64-static
@ -67,12 +67,12 @@ jobs:
mkdir -p ~/.ghcup/bin && curl https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > ~/.ghcup/bin/ghcup && chmod +x ~/.ghcup/bin/ghcup
fi
ghcup --version
if [[ ! -x ~/.ghcup/bin/ghc-9.0.2 ]]; then
~/.ghcup/bin/ghcup install ghc 9.0.2 && ~/.ghcup/bin/ghcup set ghc 9.0.2
if [[ ! -x ~/.ghcup/bin/ghc-9.8.2 ]]; then
~/.ghcup/bin/ghcup install ghc 9.8.2 && ~/.ghcup/bin/ghcup set ghc 9.8.2
fi
ghc --version
if [[ ! -x ~/.ghcup/bin/cabal-3.8.1.0 ]]; then
~/.ghcup/bin/ghcup install cabal 3.8.1.0 && ~/.ghcup/bin/ghcup set cabal 3.8.1.0
if [[ ! -x ~/.ghcup/bin/cabal-3.10.3.0 ]]; then
~/.ghcup/bin/ghcup install cabal 3.10.3.0 && ~/.ghcup/bin/ghcup set cabal 3.10.3.0
fi
cabal --version