Skip to content

Commit 21d42e0

Browse files
committed
deploy-2-start: Add --custom-scope loop to spack install and module refresh
1 parent 384c5d6 commit 21d42e0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/deploy-2-start.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
run: |
8383
echo "spack=$(jq --compact-output --raw-output '.spack' ./config/versions.json)" >> $GITHUB_OUTPUT
8484
echo "packages=$(jq --compact-output --raw-output '."access-spack-packages"' ./config/versions.json)" >> $GITHUB_OUTPUT
85+
echo "custom-scopes=$(jq --compact-output --raw-output '."custom-scopes" // [] | join(" ")' ./config/versions.json)" >> $GITHUB_OUTPUT
8586
8687
- name: Get ${{ inputs.deployment-target }} ${{ inputs.deployment-type }} Remote Paths
8788
id: path
@@ -215,8 +216,13 @@ jobs:
215216
spack repo update access_spack_packages --commit ${{ steps.packages-ref.outputs.sha }}
216217
217218
# Finally, install the spack manifest
218-
spack --debug install --fail-fast --fresh ${{ vars.SPACK_INSTALL_ADDITIONAL_ARGS }} || exit $?
219-
spack module tcl refresh -y
219+
spack --debug \
220+
$(for s in ${{ steps.versions.outputs.custom-scopes }}; do echo -n "--custom-scope $s "; done) \
221+
install --fail-fast --fresh ${{ vars.SPACK_INSTALL_ADDITIONAL_ARGS }} || exit $?
222+
223+
spack \
224+
$(for s in ${{ steps.versions.outputs.custom-scopes }}; do echo -n "--custom-scope $s "; done) \
225+
module tcl refresh -y
220226
EOT
221227
222228
- name: Move spack logs

0 commit comments

Comments
 (0)