ghcup-hs/.gitlab/before_script/darwin/install_deps.sh

18 lines
350 B
Bash
Raw Normal View History

2020-04-15 07:45:18 +00:00
#!/bin/sh
set -eux
. "$( cd "$(dirname "$0")" ; pwd -P )/../../ghcup_env"
2020-05-01 14:27:27 +00:00
mkdir -p "${TMPDIR}"
curl -sSfL https://downloads.haskell.org/~ghcup/x86_64-apple-darwin-ghcup > ./ghcup-bin
chmod +x ghcup-bin
2020-04-15 07:45:18 +00:00
2021-02-20 22:03:44 +00:00
./ghcup-bin upgrade -i -f
2021-05-14 22:44:19 +00:00
./ghcup-bin install ${GHC_VERSION}
./ghcup-bin set ${GHC_VERSION}
./ghcup-bin install-cabal ${CABAL_VERSION}
2020-04-15 07:45:18 +00:00
exit 0