summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiakai Liu <liujiakai@fb.com>2019-04-08 10:54:59 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2019-04-08 11:03:54 -0700
commit66a3277dfa028a4a00693f78184202c48395dab6 (patch)
tree13420c0d50f7fae3d20c8f818e39e637eeb4288f
parent0565141728abe8d9235538157077973e2aaa8081 (diff)
downloadpytorch-66a3277dfa028a4a00693f78184202c48395dab6.tar.gz
pytorch-66a3277dfa028a4a00693f78184202c48395dab6.tar.bz2
pytorch-66a3277dfa028a4a00693f78184202c48395dab6.zip
call build_android.sh from pytorch CI build script (#18918)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/18918 ghimport-source-id: 98c63da263adbbc6ac74a69ac117740c852833cd Reviewed By: dreiss Differential Revision: D14800727 Pulled By: ljk53 fbshipit-source-id: 4d06f845bb34bcdb74b0602404f2a0782f8c8783
-rwxr-xr-x.jenkins/pytorch/build.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/.jenkins/pytorch/build.sh b/.jenkins/pytorch/build.sh
index da974e4d9d..4e412f7da5 100755
--- a/.jenkins/pytorch/build.sh
+++ b/.jenkins/pytorch/build.sh
@@ -56,6 +56,17 @@ if ! which conda; then
fi
fi
+# Use special scripts for Android builds
+if [[ "${BUILD_ENVIRONMENT}" == *-android* ]]; then
+ export ANDROID_NDK=/opt/ndk
+ build_args=()
+ build_args+=("-DBUILD_BINARY=ON")
+ build_args+=("-DBUILD_TEST=ON")
+ build_args+=("-DUSE_OBSERVERS=ON")
+ build_args+=("-DUSE_ZSTD=ON")
+ exec ./scripts/build_android.sh "${build_args[@]}" "$@"
+fi
+
if [[ "$BUILD_ENVIRONMENT" == *rocm* ]]; then
# When hcc runs out of memory, it silently exits without stopping
# the build process, leaving undefined symbols in the shared lib