File tree Expand file tree Collapse file tree 2 files changed +9
-34
lines changed Expand file tree Collapse file tree 2 files changed +9
-34
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Android Release Artifacts
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ description : Version name to be uploaded for AAR release
8
+ required : false
9
+ type : string
5
10
6
11
concurrency :
7
12
group : ${{ github.workflow }}-${{ github.ref }}
29
34
export ARTIFACTS_DIR_NAME=artifacts-to-be-uploaded
30
35
31
36
# Build LLM Demo for Android
32
- # bash build/build_android_llm_demo.sh ${ARTIFACTS_DIR_NAME}
33
- mkdir -p "${ARTIFACTS_DIR_NAME}/llm_demo"
34
- touch "${ARTIFACTS_DIR_NAME}/llm_demo/executorch.aar"
35
-
37
+ bash build/build_android_llm_demo.sh ${ARTIFACTS_DIR_NAME}
36
38
37
39
shasum -a 256 "${ARTIFACTS_DIR_NAME}/llm_demo/executorch.aar"
38
40
@@ -50,14 +52,15 @@ jobs:
50
52
with :
51
53
role-to-assume : arn:aws:iam::308535385114:role/gha_executorch_upload-frameworks-android
52
54
aws-region : us-east-1
53
- - name : Upload AAR to RC
55
+ - name : Upload AAR RC to AWS S3
54
56
shell : bash
55
57
run : |
56
58
wget https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/llm_demo/executorch.aar
57
59
shasum -a 256 executorch.aar > executorch.aar.sha256sums
58
60
59
61
pip install awscli==1.32.18
60
62
AWS_CMD="aws s3 cp"
61
- VERSION_NAME="$(date +'%Y%m%d')"
63
+ VERSION="${{ inputs.version }}"
64
+ VERSION_NAME="${VERSION:-temp_snapshot}"
62
65
${AWS_CMD} executorch.aar s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar --acl public-read
63
66
${AWS_CMD} executorch.aar.sha256sums s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar.sha256sums --acl public-read
Original file line number Diff line number Diff line change 53
53
54
54
shasum -a 256 "${ARTIFACTS_DIR_NAME}/llm_demo/executorch.aar"
55
55
56
- upload-release-aar :
57
- name : upload-release-aar
58
- needs : build-aar
59
- if : ${{ startsWith(github.ref, 'refs/tags/android/release') }}
60
- runs-on : ubuntu-22.04
61
- timeout-minutes : 10
62
- permissions :
63
- id-token : write
64
- contents : read
65
- steps :
66
- - name : configure aws credentials
67
- uses :
aws-actions/[email protected]
68
- with :
69
- role-to-assume : arn:aws:iam::308535385114:role/gha_executorch_upload-frameworks-android
70
- aws-region : us-east-1
71
- - name : Upload AAR to RC if ciflow/android/release tag is present
72
- shell : bash
73
- run : |
74
- wget https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/llm_demo/executorch.aar
75
- shasum -a 256 executorch.aar > executorch.aar.sha256sums
76
-
77
- pip install awscli==1.32.18
78
- AWS_CMD="aws s3 cp"
79
- VERSION="${{ inputs.version }}"
80
- VERSION_NAME="${VERSION:-temp_snapshot}"
81
- ${AWS_CMD} executorch.aar s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar --acl public-read
82
- ${AWS_CMD} executorch.aar.sha256sums s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar.sha256sums --acl public-read
83
-
84
56
# Running Android emulator directly on the runner and not using Docker
85
57
run-emulator :
86
58
needs : build-aar
You can’t perform that action at this time.
0 commit comments