File tree Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -841,3 +841,28 @@ jobs:
841
841
cat ${PWD}/output_aoti
842
842
843
843
echo "Tests complete."
844
+
845
+ test-build-runner-et-android :
846
+ uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
847
+ with :
848
+ runner : linux.4xlarge
849
+ script : |
850
+ uname -a
851
+ if [ $(uname -s) == Darwin ]; then
852
+ sysctl machdep.cpu.brand_string
853
+ sysctl machdep.cpu.core_count
854
+ fi
855
+ git submodule sync
856
+ git submodule update --init
857
+ echo "Intalling pip packages"
858
+ pip install cmake --upgrade
859
+ cmake --version
860
+ pip install -r requirements.txt
861
+ export TORCHCHAT_ROOT=${PWD}
862
+ pushd /tmp
863
+ wget https://dl.google.com/android/repository/android-ndk-r26c-linux.zip
864
+ unzip android-ndk-r26c-linux.zip
865
+ popd
866
+ export ANDROID_NDK=/tmp/android-ndk-r26c
867
+ ./runner/build_android.sh
868
+ echo "Tests complete."
Original file line number Diff line number Diff line change 18
18
echo " ANDROID_NDK set to ${ANDROID_NDK} "
19
19
fi
20
20
21
- export CMAKE_TOOLCHAIN_FILE=$ANDROID_NDK /build/cmake/android.toolchain.cmake
22
- export ANDROID_ABI=arm64-v8a
23
- export ANDROID_PLATFORM=android-23
24
21
export ET_BUILD_DIR=" et-build-android"
25
22
export CMAKE_OUT_DIR=" cmake-out-android"
26
23
export EXECUTORCH_BUILD_CUSTOM_OPS_AOT=" OFF"
@@ -37,6 +34,13 @@ build_runner_et() {
37
34
}
38
35
39
36
find_cmake_prefix_path
37
+ install_pip_dependencies
40
38
clone_executorch
39
+ export ENABLE_ET_PYBIND=false
40
+ install_executorch_python_libs $ENABLE_ET_PYBIND
41
+
42
+ export CMAKE_TOOLCHAIN_FILE=$ANDROID_NDK /build/cmake/android.toolchain.cmake
43
+ export ANDROID_ABI=arm64-v8a
44
+ export ANDROID_PLATFORM=android-23
41
45
install_executorch
42
46
build_runner_et
You can’t perform that action at this time.
0 commit comments