[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] gitlab-ci.yml: Allow custom make parallelism
From: |
Daniele Buono |
Subject: |
[PATCH 1/2] gitlab-ci.yml: Allow custom make parallelism |
Date: |
Mon, 22 Feb 2021 18:01:04 -0500 |
Currently, make parallelism at build time is defined as #cpus+1.
Some build jobs may need (or benefit from) a different number.
An example is builds with LTO where, because of the huge demand
of memory at link time, gitlab runners fails if two linkers are
run concurrently
This patch retains the default value of #cpus+1 but allows setting
the "JOBS" variable to a different number when applying the template
Signed-off-by: Daniele Buono <dbuono@linux.vnet.ibm.com>
---
.gitlab-ci.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8b6d495288..5c198f05d4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,7 +17,7 @@ include:
stage: build
image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
before_script:
- - JOBS=$(expr $(nproc) + 1)
+ - JOBS=${JOBS:-$(expr $(nproc) + 1)}
script:
- mkdir build
- cd build
--
2.30.0
[PATCH 2/2] gitlab-ci.yml: Add jobs to test CFI flags, Daniele Buono, 2021/02/22