diff --git a/build/action.yaml b/build/action.yaml index 83ec59b..b8f8c26 100644 --- a/build/action.yaml +++ b/build/action.yaml @@ -71,3 +71,12 @@ runs: cp ./packages/${{ inputs.package }}/* $SPACK_ROOT/var/spack/repos/builtin/packages/${{ inputs.package }} cat $SPACK_ROOT/var/spack/repos/builtin/packages/${{ inputs.package }}/package.py spack install ${{ inputs.package }} + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + if: failure() + with: ${{ inputs.package }}-artifact + name: artifacts + path: /tmp/runner/spack-stage + if-no-files-found: error + retention-days: 90 diff --git a/release-check/action.yaml b/release-check/action.yaml index 94b8435..30e0d52 100644 --- a/release-check/action.yaml +++ b/release-check/action.yaml @@ -118,6 +118,15 @@ runs: cp ./packages/${{ inputs.package }}/* $SPACK_ROOT/var/spack/repos/builtin/packages/${{ inputs.package }} spack install ${{ inputs.package }} + - name: Upload artifacts + uses: actions/upload-artifact@v3 + if: failure() + with: ${{ inputs.package }}-artifact + name: artifacts + path: /tmp/runner/spack-stage + if-no-files-found: error + retention-days: 90 + - name: Commit latest release version if: (steps.check.outputs.version != '' && inputs.test_build == 'true' && inputs.pull_request == 'true')