Newer
Older
# yaml-language-server: $schema=gitlab-ci
# yaml-language-server: $format.enable=false
stages:
- environment
- concretize
- install
- deploy
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
# ------------------------------------------------------------------------------
.parallel_job:
# - environment: [helvetios]
# slurm_options: ["-c 36"]
Nicolas Richart
committed
- environment: [jed]
slurm_options: ["-c 72 -p jed -q jed"]
# - environment: [izar]
# slurm_options: ['-c 40 --gres gpu:2']
# apptainer_options: ['-nv']
tags:
- ${environment}
- stack
variables:
COMMAND_OPTIONS_SBATCH: ${slurm_options}
APPTAINER_EXEC_OPTIONS: ${apptainer_options} --bind ${BUILDCACHE}:/buildcache:rw
SPACK_USER_CACHE_PATH: "/tmp/spack_cache_${CI_JOB_ID}"
SPACK_USER_CONFIG_PATH: "/tmp/spack_user_${CI_JOB_ID}"
SPACK_SYSTEM_CONFIG_PATH: "${CI_PROJECT_DIR}/stack/spack/etc"
BUILDCACHE: "/work/scitas-ge/richart/ci/buildcache"
.spack_cache:
- stacks/${stack}/compiler_definitions.yaml
# ------------------------------------------------------------------------------
spack:setup:
- .spack_cache
before_script:
- git config --global --add --bool advice.detachedHead false
- .spack_cache
- spack/bin/spack -e stacks/${stack} config blame compilers
after_script:
- if [ ! -e spack-install.xml ]; then
echo "{}" > spack-install.xml
fi
artifacts:
reports:
junit: spack-install.xml
- .spack_cache
- spack/bin/spack -e stacks/${stack} config blame
- spack/bin/spack -e stacks/${stack} concretize
- .spack_cache
- spack/bin/spack -e stacks/${stack} install
--log-file spack-install.xml
--log-format junit
--only-concrete
--fail-fast
--show-log-on-error
- spack/bin/spack -e stacks/${stack} buildcache create
--update-index
--key EDC904DCE3D2E84E
/buildcache
after_script:
- if [ ! -e spack-install.xml ]; then
echo "{}" > spack-install.xml
fi