Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Add a workflow dispatch for uploading release artifact #5606

Closed
wants to merge 24 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Real build and upload sha256sums
kirklandsign committed Sep 24, 2024
commit fbf66e3e79bcf08eb088e338d1917a140380d76c
7 changes: 4 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -44,10 +44,9 @@ jobs:
export ARTIFACTS_DIR_NAME=artifacts-to-be-uploaded

# Build LLM Demo for Android
# bash build/build_android_llm_demo.sh ${ARTIFACTS_DIR_NAME}
bash build/build_android_llm_demo.sh ${ARTIFACTS_DIR_NAME}

mkdir -p "${ARTIFACTS_DIR_NAME}/llm_demo"
touch "${ARTIFACTS_DIR_NAME}/llm_demo/executorch.aar"
shasum -a 256 "${ARTIFACTS_DIR_NAME}/llm_demo/executorch.aar"

upload-release-aar:
name: upload-release-aar
@@ -65,11 +64,13 @@ jobs:
shell: bash
run: |
wget https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/llm_demo/executorch.aar
shasum -a 256 executorch.aar > executorch.aar.sha256sums

pip install awscli==1.32.18
AWS_CMD="aws s3 cp"
VERSION_NAME="$(date +'%Y%m%d')"
${AWS_CMD} executorch.aar s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar --acl public-read
${AWS_CMD} executorch.aar.sha256sums s3://ossci-android/executorch/release/${VERSION_NAME}/executorch.aar.sha256sums --acl public-read

# Running Android emulator directly on the runner and not using Docker
run-emulator: