1name: Download PyTorch Build Artifacts 2 3description: Download and unzip artifacts from a previous PyTorch build. 4 5inputs: 6 name: 7 description: Name of what artifact to download 8 required: true 9 use-gha: 10 description: If set to any value, use GHA to download the artifact. Otherwise use s3. 11 required: false 12 s3-bucket: 13 description: S3 bucket to download builds 14 required: false 15 default: "gha-artifacts" 16 17runs: 18 using: composite 19 steps: 20 - name: Download PyTorch Build Artifacts from S3 21 if: ${{ !inputs.use-gha }} 22 uses: seemethere/download-artifact-s3@v4 23 with: 24 name: ${{ inputs.name }} 25 s3-bucket: ${{ inputs.s3-bucket }} 26 27 - name: Download PyTorch Build Artifacts from GHA 28 if: ${{ inputs.use-gha }} 29 uses: actions/download-artifact@v3 30 with: 31 name: ${{ inputs.name }} 32 33 - name: Unzip artifacts 34 shell: bash 35 run: unzip -o artifacts.zip 36 37 - name: Remove artifacts.zip 38 shell: bash 39 run: rm artifacts.zip 40 41 - name: Output disk space left 42 shell: bash 43 run: df -H 44