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

22 lines
436 B
Bash
Raw Permalink Normal View History

2021-05-14 21:09:45 +00:00
#!/bin/sh
set -eux
. "$( cd "$(dirname "$0")" ; pwd -P )/../../ghcup_env"
mkdir -p "${TMPDIR}" "${CABAL_DIR}"
2021-06-09 14:31:40 +00:00
mkdir -p "$GHCUP_INSTALL_BASE_PREFIX/ghcup/bin"
2021-05-14 21:09:45 +00:00
CI_PROJECT_DIR=$(pwd)
2021-06-13 12:15:48 +00:00
curl -o ghcup.exe https://downloads.haskell.org/~ghcup/0.1.15.1/x86_64-mingw64-ghcup-0.1.15.1.exe
2021-05-14 21:09:45 +00:00
chmod +x ghcup.exe
./ghcup.exe install ${GHC_VERSION}
./ghcup.exe set ${GHC_VERSION}
./ghcup.exe install-cabal ${CABAL_VERSION}
rm ./ghcup.exe
exit 0