Skip to content
Snippets Groups Projects
Commit 27ebb399 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: set extensible target=$arch in site config

parent 5121293a
No related branches found
No related tags found
1 merge request!571fix: set extensible target=$arch in site config
......@@ -40,6 +40,7 @@ variables:
0a952f8b7bf6f70009dd5821bccbaf9170c73d07
f050b1cf7835fd31992b020e1061c52294ff7330
a419ffcf501134faed24253ccc83e6c71f9659f9
c3e41153ac92f6ef92414024a8386d4ceec2615c
## Ref: https://github.com/spack/spack/commit/[hash]
## [hash]: [description]
## b5ef5c2eb5145020f9de1bcb964626ce6ac2d02e: geant4: version bumps for Geant4 11.1.0
......@@ -70,6 +71,7 @@ variables:
## 0a952f8b7bf6f70009dd5821bccbaf9170c73d07: docs updates for spack env depfile
## f050b1cf7835fd31992b020e1061c52294ff7330: depfile: variable with all identifiers
## a419ffcf501134faed24253ccc83e6c71f9659f9: osg-ca-certs: igtf link should point to version, not 'current'
## c3e41153ac92f6ef92414024a8386d4ceec2615c: Package requirements: allow single specs in requirement lists
## EIC spack organization and repository, e.g. eic/eic-spack
EICSPACK_ORGREPO: "eic/eic-spack"
......
......@@ -44,12 +44,12 @@ RUN git clone https://github.com/${SPACK_ORGREPO}.git ${SPACK_ROOT} \
SHELL ["docker-shell"]
ARG jobs=64
RUN declare -A arch=( \
RUN declare -A target=( \
["linux/amd64"]="x86_64" \
["linux/arm64"]="aarch64" \
) \
&& arch=${arch[${TARGETPLATFORM}]} \
&& spack config --scope site add "packages:all:require:arch=${arch}" \
&& target=${target[${TARGETPLATFORM}]} \
&& spack config --scope site add "packages:all:require:[target=${target}]" \
&& spack config blame packages \
&& spack config --scope site add "config:suppress_gpg_warnings:true" \
&& spack config --scope site add "config:build_jobs:${jobs}" \
......
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