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:
13
13
cancel-in-progress : true
14
14
15
15
jobs :
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
+
16
31
build-aar :
17
32
name : build-aar
33
+ needs : check-if-aar-exists
18
34
uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
19
35
with :
20
36
runner : linux.2xlarge
You can’t perform that action at this time.
0 commit comments