@@ -28,14 +28,16 @@ jobs:
2828 PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool buck2
2929 export ARTIFACTS_DIR_NAME=artifacts-to-be-uploaded
3030
31+ mkdir -p ${ARTIFACTS_DIR_NAME}/fp32-xnnpack-custom
32+ bash examples/models/llama/install_requirements.sh
33+ bash ".ci/scripts/test_llama.sh" -model stories110M -build_tool cmake -dtype fp16 -mode portable -upload ${ARTIFACTS_DIR_NAME}/fp32-xnnpack-custom
34+
3135 # Build LLM Demo for Android
3236 export BUILD_AAR_DIR=aar-out
33- bash build/build_android_library.sh ${ARTIFACTS_DIR_NAME}
37+ mkdir -p $BUILD_AAR_DIR
38+ bash scripts/build_android_library.sh ${ARTIFACTS_DIR_NAME}
3439 bash .ci/scripts/build_android_instrumentation.sh ${ARTIFACTS_DIR_NAME}
3540
36- mkdir -p ${ARTIFACTS_DIR_NAME}/fp32-xnnpack-custom
37- bash ".ci/scripts/test_llama.sh" -model stories110M -build_tool cmake -dtype fp16 -mode portable -upload ${ARTIFACTS_DIR_NAME}/fp32-xnnpack-custom
38-
3941 mkdir -p examples/demo-apps/android/LlamaDemo/app/libs
4042 cp aar-out/executorch.aar examples/demo-apps/android/LlamaDemo/app/libs
4143 pushd examples/demo-apps/android/LlamaDemo
9496 curl -O https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/llm_demo/app-debug.apk
9597 curl -O https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/llm_demo/app-debug-androidTest.apk
9698 curl -O https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/fp32-xnnpack-custom/model.zip
97- curl -o android-test-debug.apk https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/library_test_dir/executorch-debug.apk
9899 curl -o android-test-debug-androidTest.apk https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/library_test_dir/executorch-debug-androidTest.apk
99100 unzip model.zip
100101 mv *.pte model.pte
@@ -119,7 +120,7 @@ jobs:
119120 with :
120121 api-level : ${{ env.API_LEVEL }}
121122 arch : x86_64
122- script : ./build /run_android_emulator.sh
123+ script : ./scripts /run_android_emulator.sh
123124 # NB: This is to boot the emulator faster following the instructions on
124125 # https://github.com/ReactiveCircus/android-emulator-runner. The max number
125126 # of cores we can set is 6, any higher number will be reduced to 6.
0 commit comments