From c9e4ea7040924c7c24d06116f78c448e9635be93 Mon Sep 17 00:00:00 2001 From: Tommy Gatti Date: Fri, 19 Apr 2024 11:54:33 +1000 Subject: [PATCH] deploy-2-start.yml: Added both the original and json-ified spack.location --- .github/workflows/deploy-2-start.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-2-start.yml b/.github/workflows/deploy-2-start.yml index f983eed..f60422e 100644 --- a/.github/workflows/deploy-2-start.yml +++ b/.github/workflows/deploy-2-start.yml @@ -73,7 +73,8 @@ jobs: spack env activate ${{ inputs.env-name }} spack --debug install --fresh || exit $? spack module tcl refresh --delete-tree -y - spack find --format '{name}@{version} {prefix}' | jq -Rn '[inputs | split(" ") | {(.[0]):(.[1])}] | add' > ${{ vars.SPACK_LOCATION }}/var/spack/environments/${{ inputs.env-name }}/spack.location + spack find --paths > ${{ vars.SPACK_LOCATION }}/var/spack/environments/${{ inputs.env-name }}/spack.location + spack find --format '{name}@{version} {prefix}' | jq -Rn '[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 @@ -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