ghcup-hs/.gitlab/script/ghcup_bootstrap.sh

31 lines
503 B
Bash
Raw Permalink Normal View History

2020-09-29 08:23:11 +00:00
#!/bin/sh
set -eux
. "$( cd "$(dirname "$0")" ; pwd -P )/../ghcup_env"
mkdir -p "$CI_PROJECT_DIR"/.local/bin
ecabal() {
2021-05-14 21:09:45 +00:00
cabal "$@"
2020-09-29 08:23:11 +00:00
}
eghcup() {
ghcup -v -c -s file://$(pwd)/ghcup-${JSON_VERSION}.yaml "$@"
}
git describe --always
### build
ecabal update
export BOOTSTRAP_HASKELL_NONINTERACTIVE=yes
export BOOTSTRAP_HASKELL_GHC_VERSION=$GHC_VERSION
export BOOTSTRAP_HASKELL_CABAL_VERSION=$CABAL_VERSION
2021-09-04 13:27:57 +00:00
./scripts/bootstrap/bootstrap-haskell
2020-09-29 08:23:11 +00:00
2020-09-29 08:57:21 +00:00
[ "$(ghc --numeric-version)" = "${GHC_VERSION}" ]