Skip to content

Commit

Permalink
Update spack.location to be machine-readable (#52)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
CodeGat authored Apr 19, 2024
1 parent aabb186 commit 12d2743
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-2-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
spack --debug install --fresh || exit $?
spack module tcl refresh --delete-tree -y
spack find --paths > ${{ vars.SPACK_LOCATION }}/var/spack/environments/${{ inputs.env-name }}/spack.location
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
spack env deactivate
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
EOT
Expand All @@ -100,3 +101,4 @@ jobs:
./${{ inputs.env-name }}/spack.yaml
./${{ inputs.env-name }}/spack.lock
./${{ inputs.env-name }}/spack.location
./${{ inputs.env-name }}/spack.location.json

0 comments on commit 12d2743

Please sign in to comment.