aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/steps
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ci/steps')
-rw-r--r--scripts/ci/steps/25-deps.sh24
1 files changed, 1 insertions, 23 deletions
diff --git a/scripts/ci/steps/25-deps.sh b/scripts/ci/steps/25-deps.sh
index 3a0cb21..69e5ef3 100644
--- a/scripts/ci/steps/25-deps.sh
+++ b/scripts/ci/steps/25-deps.sh
@@ -18,29 +18,7 @@ ghc_ver=$(ghc --numeric-version)
if verlte "$stack_ver" 1.9.3 &&
verlte 8.2.2 "$ghc_ver"
then
+ "$CI_SCRIPTS_DIR"/install-stack.sh "$build_dir/bin"
PATH="$build_dir/bin:$PATH"
export PATH
-
- cabal v2-install \
- --symlink-bindir="$build_dir/bin" \
- --constraint "network < 3" \
- --package-env=/dev/null \
- hpack || exit 1
-
- stack_dir="$(mktemp --tmpdir -d "cabal-helper.stacksrcXXXXXXXXX")"
-
- git clone \
- --depth=1 \
- --branch=stable \
- https://github.com/commercialhaskell/stack "$stack_dir" || exit 1
-
- (
- cd "$stack_dir"
- hpack
- cabal v2-install \
- --symlink-bindir="$build_dir/bin" \
- --constraint "Cabal == 2.4.0.1" \
- --constraint "network < 3" . \
- --package-env=/dev/null || exit 1
- ) || exit 1
fi