File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,24 @@ concurrency:
1313 cancel-in-progress : true
1414
1515jobs :
16+ check-if-aar-exists :
17+ name : check-if-aar-exists
18+ runs-on : ubuntu-22.04
19+ timeout-minutes : 10
20+ steps :
21+ - name : Check if this RC version is already in S3
22+ shell : bash
23+ run : |
24+ VERSION="${{ inputs.version }}"
25+ if curl -I "https://ossci-android.s3.amazonaws.com/executorch/release/${VERSION}/executorch.aar" | grep "200 OK"; then
26+ echo "AAR already exists at https://ossci-android.s3.amazonaws.com/executorch/release/${VERSION}/executorch.aar"
27+ echo "Will skip build/upload"
28+ exit 1
29+ fi
30+
1631 build-aar :
1732 name : build-aar
33+ needs : check-if-aar-exists
1834 uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
1935 with :
2036 runner : linux.2xlarge
You can’t perform that action at this time.
0 commit comments