summaryrefslogtreecommitdiff
path: root/share/spack/gitlab/cloud_pipelines/configs/ci.yaml
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2023-03-13 08:29:58 +0100
committerGitHub <noreply@github.com>2023-03-13 08:29:58 +0100
commit2107b6bf005b2efe2ccbd41392e3458634d77a27 (patch)
treea88157dc73af46aa4ed5d0396c796db338413376 /share/spack/gitlab/cloud_pipelines/configs/ci.yaml
parent31de7ea56cb9716f31b33dfc9a5c3db188f727df (diff)
downloadspack-2107b6bf005b2efe2ccbd41392e3458634d77a27.tar.gz
spack-2107b6bf005b2efe2ccbd41392e3458634d77a27.tar.bz2
spack-2107b6bf005b2efe2ccbd41392e3458634d77a27.tar.xz
spack-2107b6bf005b2efe2ccbd41392e3458634d77a27.zip
Set build_jobs dynamically in CI to avoid oversubscription (#35996)
Co-authored-by: Zack Galbreath <zack.galbreath@kitware.com> Co-authored-by: Ryan Krattiger <ryan.krattiger@kitware.com>
Diffstat (limited to 'share/spack/gitlab/cloud_pipelines/configs/ci.yaml')
-rw-r--r--share/spack/gitlab/cloud_pipelines/configs/ci.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/spack/gitlab/cloud_pipelines/configs/ci.yaml b/share/spack/gitlab/cloud_pipelines/configs/ci.yaml
index 8ada6673f0..8128dcd205 100644
--- a/share/spack/gitlab/cloud_pipelines/configs/ci.yaml
+++ b/share/spack/gitlab/cloud_pipelines/configs/ci.yaml
@@ -12,6 +12,7 @@ ci:
- - spack compiler find
- cd ${SPACK_CONCRETE_ENV_DIR}
- spack env activate --without-view .
+ - if [ -n "$SPACK_BUILD_JOBS" ]; then spack config add "config:build_jobs:$SPACK_BUILD_JOBS"; fi
- spack config add "config:install_tree:projections:${SPACK_JOB_SPEC_PKG_NAME}:'morepadding/{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}'"
- mkdir -p ${SPACK_ARTIFACTS_ROOT}/user_data
# AWS runners mount E4S public key (verification), UO runners mount public/private (signing/verification)