From b3d9e1143b6b1f1aa286e2482aa2007b50d16b67 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 22:34:50 +0000 Subject: [PATCH 1/2] Initial plan From a33d690828349ba57fc55292ad8c34366ae64bc0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 22:41:19 +0000 Subject: [PATCH 2/2] Add GitHub workflow action for Android build Co-authored-by: kirklandsign <107070759+kirklandsign@users.noreply.github.com> --- .github/workflows/android-build.yml | 54 +++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/android-build.yml diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml new file mode 100644 index 0000000000..24aac88282 --- /dev/null +++ b/.github/workflows/android-build.yml @@ -0,0 +1,54 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. + +name: Android Build + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - name: LlamaDemo + path: llm/android/LlamaDemo + - name: DeepLabV3Demo + path: dl3/android/DeepLabV3Demo + + name: Build ${{ matrix.name }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Build with Gradle + working-directory: ${{ matrix.path }} + run: ./gradlew build --no-daemon + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.name }}-apk + path: ${{ matrix.path }}/app/build/outputs/apk/ + if-no-files-found: warn