File tree Expand file tree Collapse file tree 2 files changed +3
-33
lines changed Expand file tree Collapse file tree 2 files changed +3
-33
lines changed Original file line number Diff line number Diff line change 1
1
# The schema is from https://github.com/pytorch/pytorch/blob/main/.github/pytorch-probot.yml
2
2
ciflow_push_tags :
3
3
- ciflow/android
4
- - ciflow/android/release
5
4
- ciflow/apple
6
5
- ciflow/nightly
7
6
- ciflow/trunk
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-aar :
27
- name : build-aar
26
+ build-llm-demo :
27
+ name : build-llm-demo
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/ciflow/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
-
78
49
# Running Android emulator directly on the runner and not using Docker
79
50
run-emulator :
80
- needs : build-aar
51
+ needs : build-llm-demo
81
52
# NB: Use metal install for KVM support to run the emulator faster
82
53
runs-on : linux.24xl.spr-metal
83
54
env :
You can’t perform that action at this time.
0 commit comments