ci: add e4s mac stack (#29476)

This commit is contained in:
eugeneswalker 2022-03-14 09:32:09 -07:00 committed by GitHub
parent f1bdbefd46
commit c3b6b3036d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 105 additions and 0 deletions

View file

@ -101,6 +101,48 @@ default:
# job: my-super-cool-stack-develop-generate
# strategy: depend
########################################
# E4S Mac Stack
########################################
.e4s-mac:
variables:
SPACK_CI_STACK_NAME: e4s-mac
allow_failure: True
e4s-mac-pr-generate:
extends: [ ".e4s-mac", ".pr-generate"]
tags:
- omicron
timeout: 60 minutes
e4s-mac-develop-generate:
extends: [ ".e4s-mac", ".develop-generate"]
tags:
- omicron
timeout: 60 minutes
e4s-mac-pr-build:
extends: [ ".e4s-mac", ".pr-build" ]
trigger:
include:
- artifact: jobs_scratch_dir/cloud-ci-pipeline.yml
job: e4s-mac-pr-generate
strategy: depend
needs:
- artifacts: True
job: e4s-mac-pr-generate
e4s-mac-develop-build:
extends: [ ".e4s-mac", ".develop-build" ]
trigger:
include:
- artifact: jobs_scratch_dir/cloud-ci-pipeline.yml
job: e4s-mac-develop-generate
strategy: depend
needs:
- artifacts: True
job: e4s-mac-develop-generate
########################################
# E4S pipeline
########################################
@ -110,6 +152,7 @@ default:
e4s-pr-generate:
extends: [ ".e4s", ".pr-generate"]
tags:
e4s-develop-generate:
extends: [ ".e4s", ".develop-generate"]

View file

@ -0,0 +1,62 @@
spack:
view: false
concretization: separately
config:
concretizer: clingo
install_tree:
root: $SPACK_ROOT/opt/spack
padded_length: 512
projections:
all: '{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}'
packages:
all:
compiler: [apple-clang@13.0.0]
target: [m1]
definitions:
- easy_specs:
- zlib
- arch:
- '%apple-clang@13.0.0 target=m1'
specs:
- matrix:
- - $easy_specs
- - $arch
mirrors: { "mirror": "s3://spack-binaries-develop/e4s-mac" }
gitlab-ci:
script:
- . "./share/spack/setup-env.sh"
- spack --version
- cd ${SPACK_CONCRETE_ENV_DIR}
- spack env activate --without-view .
- spack config add "config:install_tree:projections:${SPACK_JOB_SPEC_PKG_NAME}:'morepadding/{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}'"
- mkdir -p ${SPACK_ARTIFACTS_ROOT}/user_data
- spack -d ci rebuild > >(tee ${SPACK_ARTIFACTS_ROOT}/user_data/pipeline_out.txt) 2> >(tee ${SPACK_ARTIFACTS_ROOT}/user_data/pipeline_err.txt >&2)
mappings:
- match: ['os=monterey']
runner-attributes:
tags:
- omicron
temporary-storage-url-prefix: "s3://spack-binaries-prs/pipeline-storage"
broken-specs-url: "s3://spack-binaries-develop/broken-specs"
service-job-attributes:
before_script:
- . "./share/spack/setup-env.sh"
- spack --version
tags:
- omicron
cdash:
build-group: E4S Mac
url: https://cdash.spack.io
project: Spack Testing
site: Cloud Gitlab Infrastructure