Skip to content

Commit a8c5a74

Browse files
committed
deploy-2-start: Add --custom-scope loop to spack install and module refresh
1 parent 95300de commit a8c5a74

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
@@ -209,8 +210,13 @@ jobs:
209210
spack repo update access_spack_packages --commit ${{ steps.packages-ref.outputs.sha }}
210211
211212
# Finally, install the spack manifest
212-
spack --debug install --fail-fast --fresh ${{ vars.SPACK_INSTALL_ADDITIONAL_ARGS }} || exit $?
213-
spack module tcl refresh -y
213+
spack --debug \
214+
$(for s in ${{ steps.versions.outputs.custom-scopes }}; do echo -n "--custom-scope $s "; done) \
215+
install --fail-fast --fresh ${{ vars.SPACK_INSTALL_ADDITIONAL_ARGS }} || exit $?
216+
217+
spack \
218+
$(for s in ${{ steps.versions.outputs.custom-scopes }}; do echo -n "--custom-scope $s "; done) \
219+
module tcl refresh -y
214220
EOT
215221
216222
- name: Move spack logs

0 commit comments

Comments
 (0)