Skip to content

Commit e7f13e7

Browse files
committed
Use a separate workflow
1 parent d310a47 commit e7f13e7

File tree

2 files changed

+9
-34
lines changed

2 files changed

+9
-34
lines changed

.github/workflows/android-release-artifacts.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Android Release Artifacts
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: Version name to be uploaded for AAR release
8+
required: false
9+
type: string
510

611
concurrency:
712
group: ${{ github.workflow }}-${{ github.ref }}
@@ -29,10 +34,7 @@ jobs:
2934
export ARTIFACTS_DIR_NAME=artifacts-to-be-uploaded
3035
3136
# 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}
3638
3739
shasum -a 256 "${ARTIFACTS_DIR_NAME}/llm_demo/executorch.aar"
3840
@@ -50,14 +52,15 @@ jobs:
5052
with:
5153
role-to-assume: arn:aws:iam::308535385114:role/gha_executorch_upload-frameworks-android
5254
aws-region: us-east-1
53-
- name: Upload AAR to RC
55+
- name: Upload AAR RC to AWS S3
5456
shell: bash
5557
run: |
5658
wget https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/llm_demo/executorch.aar
5759
shasum -a 256 executorch.aar > executorch.aar.sha256sums
5860
5961
pip install awscli==1.32.18
6062
AWS_CMD="aws s3 cp"
61-
VERSION_NAME="$(date +'%Y%m%d')"
63+
VERSION="${{ inputs.version }}"
64+
VERSION_NAME="${VERSION:-temp_snapshot}"
6265
${AWS_CMD} executorch.aar s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar --acl public-read
6366
${AWS_CMD} executorch.aar.sha256sums s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar.sha256sums --acl public-read

.github/workflows/android.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,6 @@ jobs:
5353
5454
shasum -a 256 "${ARTIFACTS_DIR_NAME}/llm_demo/executorch.aar"
5555
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-
8456
# Running Android emulator directly on the runner and not using Docker
8557
run-emulator:
8658
needs: build-aar

0 commit comments

Comments
 (0)