summaryrefslogtreecommitdiff
path: root/.gitlab
diff options
context:
space:
mode:
authorCheng Shao <terrorjack@type.dance>2023-01-09 14:33:40 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2023-01-13 11:06:58 +0000
commitd53598c5b71521d6706fc0f4b5713110195d5578 (patch)
tree729b6d32b9448cddb0c5714c7110c6c9280fbec6 /.gitlab
parent84ae657307380d50786206ce0f2b95498a06ed27 (diff)
downloadhaskell-d53598c5b71521d6706fc0f4b5713110195d5578.tar.gz
ci: enable xz parallel compression for x64 jobs
Diffstat (limited to '.gitlab')
-rwxr-xr-x.gitlab/ci.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab/ci.sh b/.gitlab/ci.sh
index 3599aabd82..6500c6923c 100755
--- a/.gitlab/ci.sh
+++ b/.gitlab/ci.sh
@@ -516,6 +516,13 @@ function build_hadrian() {
check_release_build
+ # We can safely enable parallel compression for x64. By the time
+ # hadrian calls tar/xz to produce bindist, there's no other build
+ # work taking place.
+ if [[ "${CI_JOB_NAME:-}" != *"i386"* ]]; then
+ XZ_OPT="${XZ_OPT:-} -T$cores"
+ fi
+
if [[ -n "${REINSTALL_GHC:-}" ]]; then
run_hadrian build-cabal -V
else