Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
2c01e3a9
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
331
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2c01e3a9
编写于
1月 07, 2020
作者:
H
huzhiqiang
提交者:
GitHub
1月 07, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add CI Task: IOS Compiling Task (#2725)
上级
8dd34cad
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
57 addition
and
0 deletion
+57
-0
lite/tools/ci_build.sh
lite/tools/ci_build.sh
+57
-0
未找到文件。
lite/tools/ci_build.sh
浏览文件 @
2c01e3a9
...
...
@@ -610,6 +610,44 @@ function build_arm {
}
# $1: ARM_TARGET_OS in "ios", "ios64"
# $2: ARM_TARGET_ARCH_ABI in "armv7", "armv8"
function
build_ios
{
local
os
=
$1
local
abi
=
$2
build_dir
=
build.ios.
${
os
}
.
${
abi
}
echo
"building ios target into
$build_dir
"
echo
"target os:
$os
"
echo
"target abi:
$abi
"
mkdir
-p
${
build_dir
}
cd
${
build_dir
}
GEN_CODE_PATH_PREFIX
=
lite/gen_code
mkdir
-p
./
${
GEN_CODE_PATH_PREFIX
}
touch
./
${
GEN_CODE_PATH_PREFIX
}
/__generated_code__.cc
cmake ..
\
-DWITH_GPU
=
OFF
\
-DWITH_MKL
=
OFF
\
-DWITH_LITE
=
ON
\
-DLITE_WITH_CUDA
=
OFF
\
-DLITE_WITH_X86
=
OFF
\
-DLITE_WITH_ARM
=
ON
\
-DWITH_TESTING
=
OFF
\
-DLITE_WITH_JAVA
=
OFF
\
-DLITE_SHUTDOWN_LOG
=
ON
\
-DLITE_ON_TINY_PUBLISH
=
ON
\
-DLITE_WITH_OPENMP
=
OFF
\
-DWITH_ARM_DOTPROD
=
OFF
\
-DLITE_WITH_LIGHT_WEIGHT_FRAMEWORK
=
ON
\
-DARM_TARGET_ARCH_ABI
=
$abi
\
-DLITE_BUILD_EXTRA
=
$BUILD_EXTRA
\
-DLITE_WITH_CV
=
$BUILD_CV
\
-DARM_TARGET_OS
=
$os
make
-j4
publish_inference
cd
-
}
# $1: ARM_TARGET_OS in "android"
# $2: ARM_TARGET_ARCH_ABI in "armv8", "armv7"
# $3: ARM_TARGET_LANG in "gcc" "clang"
...
...
@@ -773,6 +811,21 @@ function build_test_arm_subtask_armlinux {
echo
"Done"
}
# sub-task3
# this task will test IOS compiling, which requires cmake_version>=3.15
function
build_test_arm_subtask_ios
{
cur
=
$PWD
# job 8
build_ios
"ios"
"armv7"
cd
$cur
# job 9
build_ios
"ios64"
"armv8"
cd
$cur
echo
"Done"
}
# this method need to invoke `build_test_arm_subtask_android` first.
function
build_test_arm_subtask_model
{
# We just test following single one environment to limit the CI time.
...
...
@@ -1042,6 +1095,10 @@ function main {
build_test_arm_subtask_armlinux
shift
;;
build_test_arm_subtask_ios
)
build_test_arm_subtask_ios
shift
;;
check_style
)
check_style
shift
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录