Skip to content

Commit 0f044e1

Browse files
committed
Remove build job from llm-android.yml, keep only instrumentation test
The build is already handled by android-build.yml on schedule. This workflow now only runs connectedCheck for PR validation.
1 parent 2475175 commit 0f044e1

1 file changed

Lines changed: 1 addition & 44 deletions

File tree

.github/workflows/llm-android.yml

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -13,54 +13,11 @@ on:
1313
- 'llm/android/**'
1414
- '.github/workflows/llm-android.yml'
1515
workflow_dispatch:
16-
inputs:
17-
local_aar:
18-
description: 'URL to download a local AAR file. When set, the workflow will download the AAR and use it instead of the Maven dependency.'
19-
required: false
20-
type: string
2116

2217
permissions:
2318
contents: read
2419

2520
jobs:
26-
build:
27-
runs-on: ubuntu-latest
28-
name: Build LlamaDemo
29-
steps:
30-
- name: Checkout repository
31-
uses: actions/checkout@v4
32-
33-
- name: Set up JDK 17
34-
uses: actions/setup-java@v4
35-
with:
36-
java-version: '17'
37-
distribution: 'temurin'
38-
39-
- name: Setup Gradle
40-
uses: gradle/actions/setup-gradle@v4
41-
42-
- name: Download local AAR
43-
if: ${{ inputs.local_aar }}
44-
run: |
45-
mkdir -p llm/android/LlamaDemo/app/libs
46-
curl -fL -o llm/android/LlamaDemo/app/libs/executorch.aar "${{ inputs.local_aar }}"
47-
48-
- name: Build with Gradle
49-
working-directory: llm/android/LlamaDemo
50-
run: |
51-
if [ -n "${{ inputs.local_aar }}" ]; then
52-
./gradlew build --no-daemon -PuseLocalAar=true
53-
else
54-
./gradlew build --no-daemon
55-
fi
56-
57-
- name: Upload build artifacts
58-
uses: actions/upload-artifact@v4
59-
with:
60-
name: LlamaDemo-apk
61-
path: llm/android/LlamaDemo/app/build/outputs/apk/
62-
if-no-files-found: warn
63-
6421
instrumentation-test:
6522
runs-on: ubuntu-latest
6623
env:
@@ -104,7 +61,7 @@ jobs:
10461
api-level: ${{ env.API_LEVEL }}
10562
arch: ${{ env.ARCH }}
10663
force-avd-creation: false
107-
ram-size: 16384M
64+
ram-size: 6144M
10865
emulator-options: ${{ env.EMULATOR_OPTIONS }}
10966
disable-animations: false
11067
working-directory: llm/android/LlamaDemo

0 commit comments

Comments
 (0)