Skip to content
Snippets Groups Projects
Commit 40a2d27d authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Adding module creations

parent 213fdca5
No related branches found
No related tags found
No related merge requests found
Pipeline #200403 canceled
......@@ -114,12 +114,15 @@ spack:concretize:
- .spack_cache
script:
- source ci/stack_env.sh
- ${STACK_LOCATION}/spack/bin/spack -e ${environment} config blame | tee config.log
- ${STACK_LOCATION}/spack/bin/spack -e ${environment} concretize --force | tee concretize.log
- ${STACK_LOCATION}/spack/bin/spack -e ${environment} config blame | tee config-${environment}-${stack}.log
- ${STACK_LOCATION}/spack/bin/spack -e ${environment} concretize --force | tee concretize-${environment}-${stack}.log
- cp ${SPACK_SYSTEM_CONFIG_PATH}/spack.lock spack-${environment}-${stack}.lock
artifacts:
paths:
- config.log
- concretize.log
- config-*.log
- concretize-*.log
- spack-*.lock
needs:
- job: spack:install_compilers
timeout: 24h
......@@ -152,14 +155,35 @@ spack:install:
junit: spack-install-*.xml
timeout: 72h
spack:modules:
stage: install
extends:
- .parallel_job
- .spack_cache
script:
- source ci/stack_env.sh
- ${STACK_LOCATION}/spack/bin/spack -e ${environment} modules lmod refresh --yes | tee spack-modules-${environment}-${stack}.log
- ${STACK_LOCATION}/spack/bin/spack -e ${environment} find -vlt | spack-find-${environment}-${stack}.log
needs:
- job: spack:install
artifacts:
paths:
- spack-modules-*.log
- spack-find-*.log
timeout: 1h
spack:mksquashfs:
stage: deploy
extends:
- .parallel_job
- .spack_cache
script:
- "mksquashfs ${CI_PROJECT_DIR} stack-${stack}-${environment}-${CI_COMMIT_REF_SLUG}.sqfs"
- source ci/stack_env.sh
- "mksquashfs ${STACK_LOCATION} stack-${stack}-${environment}-${CI_COMMIT_REF_SLUG}.sqfs"
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file stack-${stack}-${environment}-${CI_COMMIT_REF_SLUG}.sqfs "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/stack/${stack}/stack-${stack}-${environment}-${CI_COMMIT_REF_SLUG}.sqfs"'
needs:
- job: spack:install
- job: spack:modules
timeout: 10h
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment