Skip to content

Add GitHub workflow action for Android build#124

Merged
kirklandsign merged 2 commits into
mainfrom
copilot/add-github-workflow-action
Dec 19, 2025
Merged

Add GitHub workflow action for Android build#124
kirklandsign merged 2 commits into
mainfrom
copilot/add-github-workflow-action

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 19, 2025

Adds CI workflow to build Android example applications on push/PR to main.

Changes

  • New workflow: .github/workflows/android-build.yml
    • Matrix build for LlamaDemo and DeepLabV3Demo projects
    • JDK 17 (Temurin) + Gradle setup with caching
    • APK artifact upload per project
    • Explicit permissions: contents: read for security

Scope

Only projects using Maven dependencies are included. Projects requiring local AAR files (Yolo, Whisper, CIFAR) need a separate workflow to first build/download ExecutorTorch artifacts.

Original prompt

Help me add a github workflow action for android build


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Dec 19, 2025
@meta-cla
Copy link
Copy Markdown

meta-cla Bot commented Dec 19, 2025

Hi @Copilot!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

Co-authored-by: kirklandsign <107070759+kirklandsign@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub workflow action for Android build Add GitHub workflow action for Android build Dec 19, 2025
Copilot AI requested a review from kirklandsign December 19, 2025 22:42
@kirklandsign
Copy link
Copy Markdown
Contributor

@copilot does ubuntu-latest come with jdk already?

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Dec 19, 2025

@copilot does ubuntu-latest come with jdk already?

Yes, ubuntu-latest comes with JDK 8, 11, 17 (default), 21, and 25 pre-installed. The setup-java action is still useful for: ensuring a consistent version across runs, setting up Gradle dependency caching, and guaranteeing the Temurin distribution. That said, if you'd prefer to rely on the pre-installed JDK and remove this step, I can do that.

@kirklandsign
Copy link
Copy Markdown
Contributor

@copilot For actions/upload-artifact@v4, does it upload to a github s3? what quota or pricing is it

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Dec 19, 2025

@copilot For actions/upload-artifact@v4, does it upload to a github s3? what quota or pricing is it

Artifacts are stored in GitHub's own storage (Azure-backed), not a separate S3 bucket. For public repos, artifact storage is free with unlimited storage. Artifacts have a default 90-day retention (configurable). For private repos, storage counts against your account's included storage quota (varies by plan), with overage at $0.25/GB/month. If you'd prefer to skip the artifact upload step to avoid any concerns, I can remove it.

@kirklandsign kirklandsign requested a review from huydhn December 19, 2025 22:51
@kirklandsign kirklandsign marked this pull request as ready for review December 19, 2025 23:03
@kirklandsign
Copy link
Copy Markdown
Contributor

@copilot is it possible to upload it the apk to google play store?

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Dec 19, 2025

@copilot is it possible to upload it the apk to google play store?

Yes, it's possible using the r0adkll/upload-google-play action. It requires: (1) a Google Play service account JSON key stored as a GitHub secret, (2) signing the APK/AAB with a release keystore, and (3) the app already registered in Google Play Console. Would you like me to add this as a separate deployment workflow? Note that demo/example apps typically aren't published to Play Store, so this may be better suited for production apps.

@psiddh
Copy link
Copy Markdown
Contributor

psiddh commented Dec 19, 2025

Nice!!

@kirklandsign kirklandsign merged commit b2c0363 into main Dec 19, 2025
5 of 6 checks passed
@kirklandsign kirklandsign deleted the copilot/add-github-workflow-action branch December 19, 2025 23:33
@kirklandsign
Copy link
Copy Markdown
Contributor

@copilot make a new PR to make it nightly instead of per push or pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants