From 87cba6ec1c004d2232cebede610b40edb272c4ee Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Fri, 12 Feb 2021 03:18:00 +0100 Subject: ci: Update CI images for GHC 8.10.4 and 8.8.4 --- scripts/build-ci-images.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'scripts') diff --git a/scripts/build-ci-images.sh b/scripts/build-ci-images.sh index 521139a..e3417aa 100644 --- a/scripts/build-ci-images.sh +++ b/scripts/build-ci-images.sh @@ -4,6 +4,8 @@ # # Example: ./docker.sh #< build all images +NPROC=${NPROC:-$(nproc)} + namespace="registry.gitlab.com/dxld/cabal-helper/ci" tmpdir=$(mktemp -p "${TMPDIR:-/tmp/}" -d cabal-helper-docker-XXXX) || exit 1 @@ -15,17 +17,17 @@ HACKAGE_BASE=https://hackage.haskell.org/package STACK_BASE=https://github.com/commercialhaskell/stack/releases/download image=debian:buster -cabal=3.0.0.0 -stack=2.1.3 +cabal=3.2.0.0 +stack=2.5.1 -stack_url="${STACK_BASE}/v${stack}/stack-${stack}-linux-x86_64-static.tar.gz" +stack_url="${STACK_BASE}/v${stack}/stack-${stack}-linux-x86_64.tar.gz" stack_file="$(basename "$stack_url")" mkdir -p "$dldir" cat >"$tmpdir"/ghc_table <> "$tmpdir"/ghcs -} | tee "$tmpdir"/ghc-urls | xargs -n1 -P$(nproc) sh -ue -c ' +} | tee "$tmpdir"/ghc-urls | xargs -n1 -P$NPROC sh -ue -c ' cd "$1" wget -nv -nc -c "$3" cp "$(basename "$3")" "$2" @@ -93,7 +95,7 @@ RUN cd /usr/local/bin && \ --strip-components 1 --wildcards '*/stack' && \ stack --help >/dev/null -RUN cat ghcs | xargs -P$(nproc) -n1 sh install-ghc.sh +RUN cat ghcs | xargs -P$NPROC -n1 sh install-ghc.sh RUN cabal update && \ cabal install cabal-install-${cabal} --ghc-option=-j && \ -- cgit v1.2.3