Compare commits

..

1 Commits

Author SHA1 Message Date
12e544faf8 Fix bindist for GHC 9.4.1 and 9.4.2 for old GLIBCs
This will break cabal cache and HLS ABI.
2022-10-08 14:42:26 +08:00
3 changed files with 5 additions and 25 deletions

View File

@@ -60,12 +60,6 @@ jobs:
- image: fedora:latest
installCmd: dnf install -y
toolRequirements: which gcc g++ gmp gmp-devel make ncurses ncurses-compat-libs xz perl
- image: linuxmintd/mint19.3-amd64
installCmd: apt-get update && apt-get install -y
toolRequirements: build-essential curl libffi-dev libffi6 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5
- image: linuxmintd/mint20.2-amd64
installCmd: apt-get update && apt-get install -y
toolRequirements: build-essential curl libffi-dev libffi7 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5
container:
image: ${{ matrix.image }}
steps:

View File

@@ -12,29 +12,15 @@ which ghcup | grep foobarbaz
ghcup -v --url-source=file:$METADATA_FILE install $TOOL --set $VERSION
cat <<EOF > main.hs
{- cabal:
build-depends: base
-}
main = print $ 1 + 1
EOF
case $TOOL in
hls)
haskell-language-server-wrapper --version
haskell-language-server-wrapper typecheck main.hs
;;
ghc)
ghc --version
ghc --info
ghc -prof main.hs
[[ $(./main +RTS -s) -eq 2 ]]
;;
cabal)
cabal --version
cabal update
[[ $(cabal --verbose=0 run --enable-profiling ./main.hs -- +RTS -s) -eq 2 ]]
echo 'main = print $ 1 + 1' > main.hs
ghc main.hs
[[ $(./main) -eq 2 ]]
;;
*)
$TOOL --version

View File

@@ -2499,7 +2499,7 @@ ghcupDownloads:
Linux_RedHat:
unknown_versioning: *ghc-941-64-centos
Linux_UnknownLinux:
unknown_versioning: *ghc-941-64-fedora
unknown_versioning: *ghc-941-64-centos
Darwin:
unknown_versioning:
dlUri: https://downloads.haskell.org/ghcup/unofficial-bindists/ghc/curated/9.4.1/ghc-9.4.1-x86_64-apple-darwin.tar.xz
@@ -2586,7 +2586,7 @@ ghcupDownloads:
Linux_RedHat:
unknown_versioning: *ghc-942-64-centos
Linux_UnknownLinux:
unknown_versioning: *ghc-942-64-fedora
unknown_versioning: *ghc-942-64-centos
Darwin:
unknown_versioning:
dlUri: https://downloads.haskell.org/~ghc/9.4.2/ghc-9.4.2-x86_64-apple-darwin.tar.xz