Skip to content

Commit 12d2743

Browse files
authored
Update spack.location to be machine-readable (#52)
* deploy-2-start.yml: Added machine-readable spack.location * deploy-2-start.yml: Updated spack.location to actually contain paths * deploy-2-start.yml: Added both the original and json-ified spack.location * deploy-2-start.yml: Expanded flags to long form
1 parent aabb186 commit 12d2743

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
spack --debug install --fresh || exit $?
7575
spack module tcl refresh --delete-tree -y
7676
spack find --paths > ${{ vars.SPACK_LOCATION }}/var/spack/environments/${{ inputs.env-name }}/spack.location
77+
spack find --format '{name}@{version} {prefix}' | jq --raw-input --null-input '[inputs | split(" ") | {(.[0]):(.[1])}] | add' > ${{ vars.SPACK_LOCATION }}/var/spack/environments/${{ inputs.env-name }}/spack.location.json
7778
spack env deactivate
7879
echo "$(date): Deployed ${{ inputs.model }} ${{ inputs.version }} with spack-packages ${{ steps.versions.outputs.packages }}, spack-config ${{ steps.versions.outputs.config }}" >> ${{ vars.SPACK_RELEASE_LOCATION }}/release.log
7980
EOT
@@ -100,3 +101,4 @@ jobs:
100101
./${{ inputs.env-name }}/spack.yaml
101102
./${{ inputs.env-name }}/spack.lock
102103
./${{ inputs.env-name }}/spack.location
104+
./${{ inputs.env-name }}/spack.location.json

0 commit comments

Comments
 (0)