Skip to content

Commit

Permalink
Set spack user config and cache path only if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
aurianer committed Aug 30, 2022
1 parent 2a9ef43 commit bae23af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .jenkins/cscs/env-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
module load daint-gpu spack-config

export SPACK_ROOT="/apps/daint/SSL/pika/spack"
export SPACK_USER_CONFIG_PATH="${SPACK_ROOT}/../spack-user-config"
export SPACK_USER_CACHE_PATH="$SCRATCH/jenkins-pika-spack-user-cache"
test -z $SPACK_USER_CONFIG_PATH && export SPACK_USER_CONFIG_PATH="${SPACK_ROOT}/../spack-user-config"
test -z $SPACK_USER_CACHE_PATH && export SPACK_USER_CACHE_PATH="$SCRATCH/jenkins-pika-spack-user-cache"
source "${SPACK_ROOT}/share/spack/setup-env.sh"

spack load ccache@4.5.1 %gcc@10.3.0
Expand Down

0 comments on commit bae23af

Please sign in to comment.