e4s on mac ci: set SPACK_DISABLE_LOCAL_CONFIG=1 (#30568)
* e4s on mac ci: set SPACK_DISABLE_LOCAL_CONFIG=1 * export SPACK_USER_CACHE_PATH so that ~/.spack/... isn't used
This commit is contained in:
parent
7997dfcf80
commit
8575afac4e
@ -111,15 +111,53 @@ default:
|
|||||||
allow_failure: True
|
allow_failure: True
|
||||||
|
|
||||||
e4s-mac-pr-generate:
|
e4s-mac-pr-generate:
|
||||||
extends: [ ".e4s-mac", ".pr-generate"]
|
extends: [".e4s-mac", ".pr"]
|
||||||
|
stage: generate
|
||||||
|
script:
|
||||||
|
- tmp="$(mktemp -d)"; export SPACK_USER_CONFIG_PATH="$tmp"; export SPACK_USER_CACHE_PATH="$tmp"
|
||||||
|
- . "./share/spack/setup-env.sh"
|
||||||
|
- spack --version
|
||||||
|
- cd share/spack/gitlab/cloud_pipelines/stacks/${SPACK_CI_STACK_NAME}
|
||||||
|
- spack env activate --without-view .
|
||||||
|
- spack ci generate --check-index-only
|
||||||
|
--artifacts-root "${CI_PROJECT_DIR}/jobs_scratch_dir"
|
||||||
|
--output-file "${CI_PROJECT_DIR}/jobs_scratch_dir/cloud-ci-pipeline.yml"
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- "${CI_PROJECT_DIR}/jobs_scratch_dir"
|
||||||
tags:
|
tags:
|
||||||
- omicron
|
- omicron
|
||||||
|
interruptible: true
|
||||||
|
retry:
|
||||||
|
max: 2
|
||||||
|
when:
|
||||||
|
- runner_system_failure
|
||||||
|
- stuck_or_timeout_failure
|
||||||
timeout: 60 minutes
|
timeout: 60 minutes
|
||||||
|
|
||||||
e4s-mac-develop-generate:
|
e4s-mac-develop-generate:
|
||||||
extends: [ ".e4s-mac", ".develop-generate"]
|
extends: [".e4s-mac", ".develop"]
|
||||||
|
stage: generate
|
||||||
|
script:
|
||||||
|
- tmp="$(mktemp -d)"; export SPACK_USER_CONFIG_PATH="$tmp"; export SPACK_USER_CACHE_PATH="$tmp"
|
||||||
|
- . "./share/spack/setup-env.sh"
|
||||||
|
- spack --version
|
||||||
|
- cd share/spack/gitlab/cloud_pipelines/stacks/${SPACK_CI_STACK_NAME}
|
||||||
|
- spack env activate --without-view .
|
||||||
|
- spack ci generate --check-index-only
|
||||||
|
--artifacts-root "${CI_PROJECT_DIR}/jobs_scratch_dir"
|
||||||
|
--output-file "${CI_PROJECT_DIR}/jobs_scratch_dir/cloud-ci-pipeline.yml"
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- "${CI_PROJECT_DIR}/jobs_scratch_dir"
|
||||||
tags:
|
tags:
|
||||||
- omicron
|
- omicron
|
||||||
|
interruptible: true
|
||||||
|
retry:
|
||||||
|
max: 2
|
||||||
|
when:
|
||||||
|
- runner_system_failure
|
||||||
|
- stuck_or_timeout_failure
|
||||||
timeout: 60 minutes
|
timeout: 60 minutes
|
||||||
|
|
||||||
e4s-mac-pr-build:
|
e4s-mac-pr-build:
|
||||||
|
@ -17,8 +17,8 @@ spack:
|
|||||||
|
|
||||||
definitions:
|
definitions:
|
||||||
- easy_specs:
|
- easy_specs:
|
||||||
- kokkos +openmp
|
- berkeley-db
|
||||||
- kokkos-kernels +openmp
|
- ncurses
|
||||||
|
|
||||||
- arch:
|
- arch:
|
||||||
- '%apple-clang@13.0.0 target=m1'
|
- '%apple-clang@13.0.0 target=m1'
|
||||||
@ -34,6 +34,7 @@ spack:
|
|||||||
gitlab-ci:
|
gitlab-ci:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- tmp="$(mktemp -d)"; export SPACK_USER_CONFIG_PATH="$tmp"; export SPACK_USER_CACHE_PATH="$tmp"
|
||||||
- . "./share/spack/setup-env.sh"
|
- . "./share/spack/setup-env.sh"
|
||||||
- spack --version
|
- spack --version
|
||||||
- cd ${SPACK_CONCRETE_ENV_DIR}
|
- cd ${SPACK_CONCRETE_ENV_DIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user