2020-05-30 20:15:48 +00:00
|
|
|
#!/bin/sh
|
2020-05-07 16:28:27 +00:00
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
## install ghc via old ghcup
|
|
|
|
|
|
|
|
mkdir -p ~/.ghcup/bin
|
|
|
|
curl https://gitlab.haskell.org/haskell/ghcup/raw/master/ghcup > ~/.ghcup/bin/ghcup
|
|
|
|
chmod +x ~/.ghcup/bin/ghcup
|
|
|
|
|
|
|
|
export PATH="$HOME/.ghcup/bin:$PATH"
|
|
|
|
|
|
|
|
ghcup install 8.8.3
|
|
|
|
ghcup install-cabal 3.2.0.0
|
|
|
|
ghcup set 8.8.3
|
|
|
|
|
|
|
|
|
|
|
|
## install ghcup
|
|
|
|
|
|
|
|
cabal update
|
2020-05-08 18:13:10 +00:00
|
|
|
cabal build --constraint="zlib static" --constraint="lzma static"
|
2020-05-30 20:15:48 +00:00
|
|
|
cp "$(cabal new-exec --verbose=0 --offline sh -- -c 'command -v ghcup')" .
|
|
|
|
strip -s ghcup
|
|
|
|
cp ghcup "./${ARTIFACT}"
|