File tree Expand file tree Collapse file tree 1 file changed +32
-3
lines changed Expand file tree Collapse file tree 1 file changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ concurrency:
23
23
cancel-in-progress : true
24
24
25
25
jobs :
26
- build-llm-demo :
27
- name : build-llm-demo
26
+ build-aar :
27
+ name : build-aar
28
28
uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
29
29
with :
30
30
runner : linux.2xlarge
46
46
# Build LLM Demo for Android
47
47
bash build/build_android_llm_demo.sh ${ARTIFACTS_DIR_NAME}
48
48
49
+ shasum -a 256 "${ARTIFACTS_DIR_NAME}/llm_demo/executorch.aar"
50
+
51
+ upload-release-aar :
52
+ name : upload-release-aar
53
+ needs : build-aar
54
+ if : ${{ startsWith(github.ref, 'refs/tags/android/release') }}
55
+ runs-on : ubuntu-22.04
56
+ timeout-minutes : 10
57
+ permissions :
58
+ id-token : write
59
+ contents : read
60
+ steps :
61
+ - name : configure aws credentials
62
+ uses :
aws-actions/[email protected]
63
+ with :
64
+ role-to-assume : arn:aws:iam::308535385114:role/gha_executorch_upload-frameworks-android
65
+ aws-region : us-east-1
66
+ - name : Upload AAR to RC if ciflow/android/release tag is present
67
+ shell : bash
68
+ run : |
69
+ wget https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/llm_demo/executorch.aar
70
+ shasum -a 256 executorch.aar > executorch.aar.sha256sums
71
+
72
+ pip install awscli==1.32.18
73
+ AWS_CMD="aws s3 cp"
74
+ VERSION_NAME="$(date +'%Y%m%d')"
75
+ ${AWS_CMD} executorch.aar s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar --acl public-read
76
+ ${AWS_CMD} executorch.aar.sha256sums s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar.sha256sums --acl public-read
77
+
49
78
# Running Android emulator directly on the runner and not using Docker
50
79
run-emulator :
51
- needs : build-llm-demo
80
+ needs : build-aar
52
81
# NB: Use metal install for KVM support to run the emulator faster
53
82
runs-on : linux.24xl.spr-metal
54
83
env :
You can’t perform that action at this time.
0 commit comments