File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,22 @@ jobs:
2929 export ARTIFACTS_DIR_NAME=artifacts-to-be-uploaded
3030
3131 # Build LLM Demo for Android
32+ export BUILD_AAR_DIR=aar-out
3233 bash build/build_android_library.sh ${ARTIFACTS_DIR_NAME}
3334 bash build/build_android_instrumentation.sh ${ARTIFACTS_DIR_NAME}
3435
3536 mkdir -p examples/demo-apps/android/LlamaDemo/app/libs
36- cp ${BUILD_AAR_DIR} /executorch.aar examples/demo-apps/android/LlamaDemo/app/libs
37+ cp aar-out /executorch.aar examples/demo-apps/android/LlamaDemo/app/libs
3738 pushd examples/demo-apps/android/LlamaDemo
3839 ANDROID_HOME="${ANDROID_SDK:-/opt/android/sdk}" ./gradlew build assembleAndroidTest
3940 popd
4041
42+ DEMO_APP_DIR="${ARTIFACTS_DIR_NAME}/llm_demo"
43+ # The app directory is named using its build flavor as a suffix.
44+ mkdir -p "${DEMO_APP_DIR}"
45+ # Collect the app and its test suite
46+ cp examples/demo-apps/android/LlamaDemo/app/build/outputs/apk/debug/*.apk "${DEMO_APP_DIR}"
47+ cp examples/demo-apps/android/LlamaDemo/app/build/outputs/apk/androidTest/debug/*.apk "${DEMO_APP_DIR}"
4148
4249 # Running Android emulator directly on the runner and not using Docker
4350 run-emulator :
Original file line number Diff line number Diff line change @@ -374,14 +374,6 @@ jobs:
374374 cp extension/benchmark/android/benchmark/app/build/outputs/apk/debug/*.apk "${MINIBENCH_APP_DIR}"
375375 cp extension/benchmark/android/benchmark/app/build/outputs/apk/androidTest/debug/*.apk "${MINIBENCH_APP_DIR}"
376376
377- DEMO_APP_DIR="${ARTIFACTS_DIR_NAME}/llm_demo"
378- # The app directory is named using its build flavor as a suffix.
379- mkdir -p "${DEMO_APP_DIR}"
380- # Collect the app and its test suite
381- cp examples/demo-apps/android/LlamaDemo/app/build/outputs/apk/debug/*.apk "${DEMO_APP_DIR}"
382- cp examples/demo-apps/android/LlamaDemo/app/build/outputs/apk/androidTest/debug/*.apk "${DEMO_APP_DIR}"
383-
384-
385377 # Let's see how expensive this job is, we might want to tone it down by running it periodically
386378 benchmark-on-device :
387379 if : always()
Original file line number Diff line number Diff line change 5656 mkdir aar-out
5757 export BUILD_AAR_DIR=aar-out
5858 bash build/build_android_library.sh
59+ mkdir -p "${ARTIFACTS_DIR_NAME}/llm_demo"
5960 cp aar-out/executorch.aar "${ARTIFACTS_DIR_NAME}/llm_demo/executorch.aar"
6061
6162 shasum -a 256 "${ARTIFACTS_DIR_NAME}/llm_demo/executorch.aar"
You can’t perform that action at this time.
0 commit comments