From ece03220c91c69468c9a9fbc6b9241a7f1689578 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 10 Oct 2021 17:22:53 +0200 Subject: [PATCH] Fix git CI job --- .gitlab/script/ghcup_git.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab/script/ghcup_git.sh b/.gitlab/script/ghcup_git.sh index 38c4c28..5ce7eb6 100755 --- a/.gitlab/script/ghcup_git.sh +++ b/.gitlab/script/ghcup_git.sh @@ -41,7 +41,13 @@ cabal --version eghcup debug-info -eghcup compile ghc -j $(nproc) -g ${GHC_GIT_TAG} -b ${GHC_VERSION} -- --enable-unregisterised +( + cd /tmp + ecabal install --installdir="$CI_PROJECT_DIR/.local/bin" --overwrite-policy=always --install-method=copy --constraint="happy == 1.19.12" happy + ecabal install --installdir="$CI_PROJECT_DIR/.local/bin" --overwrite-policy=always --install-method=copy --constraint="alex == 3.2.6" alex +) + +eghcup compile ghc -j $(nproc) -g ${GHC_GIT_TAG} -b ${GHC_VERSION} --hadrian -- --enable-unregisterised eghcup set ghc ${GHC_GIT_VERSION} [ `$(eghcup whereis ghc ${GHC_GIT_VERSION}) --numeric-version` = "${GHC_GIT_VERSION}" ]