From 5ee794556cc29629f719dcb40fcf54a256c6e7ae Mon Sep 17 00:00:00 2001 From: Nicolas Richart <nicolas.richart@epfl.ch> Date: Fri, 9 Aug 2024 11:14:08 +0200 Subject: [PATCH] Adding mirrors and clean of patches --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 45843c7..a5dea33 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -151,6 +151,9 @@ spack:concretize: - ${STACK_LOCATION}/spack/bin/spack --color always -e ${environment} concretize | tee concretize-${environment}-${stack}.log + - ${STACK_LOCATION}/spack/bin/spack --color always -e ${environment} + mirror create -D -d ${MOUNT_POINT}/spack-mirror -a || /usr//bin/true + - cp ${SPACK_SYSTEM_CONFIG_PATH}/spack.lock spack-${environment}-${stack}.lock - ${CI_PROJECT_DIR}/ci/update_squashfs.sh artifacts: @@ -171,6 +174,9 @@ spack:install: - source ci/stack_env.sh - echo "{}" > spack-install-${environment}.xml + # Cleaning patches in case one has a different hash + - ${STACK_LOCATION}/spack/bin/spack --color always -e ${environment} clean -m + - ${STACK_LOCATION}/spack/bin/spack --color always -e ${environment} install --log-file spack-install-${environment}.xml --log-format junit -- GitLab