Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 8, 2026

Adds support for using a custom ExecuTorch AAR file in the Android build workflow instead of the Maven dependency.

Changes

  • New local_aar workflow input: Optional string parameter under workflow_dispatch accepting a URL
  • Download step: When provided, downloads the AAR to llm/android/LlamaDemo/app/libs/executorch.aar
  • Build configuration: Passes -PuseLocalAar=true to Gradle, triggering the existing local AAR dependency path in build.gradle.kts

Usage

Trigger via workflow dispatch with the local_aar parameter:

# Workflow will:
# 1. curl -fL <url> -> libs/executorch.aar
# 2. ./gradlew build -PuseLocalAar=true

Only applies to LlamaDemo; other matrix entries (e.g., DeepLabV3Demo) build unchanged.

Original prompt

On android-build.yml, add an input parameter for local aar, string, as url. when it's set, update useLocalAar field in https://github.com/meta-pytorch/executorch-examples/blob/main/llm/android/LlamaDemo/app/build.gradle.kts. download the url, and copy to libs/executorch.aar


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 8, 2026
Copilot AI and others added 2 commits January 8, 2026 00:07
Co-authored-by: kirklandsign <107070759+kirklandsign@users.noreply.github.com>
… error handling

Co-authored-by: kirklandsign <107070759+kirklandsign@users.noreply.github.com>
Copilot AI changed the title [WIP] Add input parameter for local aar in android-build.yml Add local_aar input parameter to android-build workflow Jan 8, 2026
Copilot AI requested a review from kirklandsign January 8, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants