-
Notifications
You must be signed in to change notification settings - Fork 683
Android upload artifact #5588
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
Closed
Closed
Android upload artifact #5588
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6fdeb9c
Android try to upload release artifacts
kirklandsign ce0df6d
dryrun
kirklandsign 4d9676b
Test
kirklandsign 17ae807
Fix name
kirklandsign 85981fc
Fix steps
kirklandsign 64b3f0f
Fix date
kirklandsign 71aa6cb
Nondry run
kirklandsign c569ea8
Fix AWS and ciflow tag
kirklandsign fbf66e3
Real build and upload sha256sums
kirklandsign e1167b0
more permissions
kirklandsign 354b20f
Use a separate yml file
kirklandsign 95328cd
Use workflow dispatch on a android/release tag for now
kirklandsign 46f0114
add version_name
kirklandsign 307a6e9
Add workflow version field
kirklandsign File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
build-llm-demo: | ||
name: build-llm-demo | ||
build-aar: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's better to refactor
However, that could come in a later PR if you prefer |
||
name: build-aar | ||
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main | ||
with: | ||
runner: linux.2xlarge | ||
|
@@ -46,9 +46,35 @@ jobs: | |
# Build LLM Demo for Android | ||
bash build/build_android_llm_demo.sh ${ARTIFACTS_DIR_NAME} | ||
|
||
shasum -a 256 "${ARTIFACTS_DIR_NAME}/llm_demo/executorch.aar" | ||
|
||
upload-release-aar: | ||
name: upload-release-aar | ||
needs: build-aar | ||
if: ${{ startsWith(github.ref, 'refs/tags/ciflow/android/release') }} | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 10 | ||
steps: | ||
- name: configure aws credentials | ||
uses: aws-actions/[email protected] | ||
with: | ||
role-to-assume: arn:aws:iam::308535385114:role/gha_executorch_upload-frameworks-android | ||
aws-region: us-east-1 | ||
- name: Upload AAR to RC if ciflow/android/release tag is present | ||
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: | ||
needs: build-llm-demo | ||
needs: build-aar | ||
# NB: Use metal install for KVM support to run the emulator faster | ||
runs-on: linux.24xl.spr-metal | ||
env: | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes more sense to not use
ciflow/android/release
as it's a hack. The ciflow tag is for PR. If you want to keep the current implementation, you could name it something else I guess to avoid confusion, i.e.push/to/this/tag/to/release/android
. Also, no need to include that here in the list of ciflow labels