File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
2217permissions :
2318 contents : read
2419
2520jobs :
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 :
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
You can’t perform that action at this time.
0 commit comments