未验证 提交 a95db6a7 编写于 作者: T tianshuo78520a 提交者: GitHub

fix model-benchmark build error (#35081)

上级 5b814fd5
...@@ -29,8 +29,13 @@ function check_whl { ...@@ -29,8 +29,13 @@ function check_whl {
git checkout . git checkout .
git checkout -b develop_base_pr upstream/$BRANCH git checkout -b develop_base_pr upstream/$BRANCH
[ $? -ne 0 ] && echo "install paddle failed." && exit 1 [ $? -ne 0 ] && echo "install paddle failed." && exit 1
cd build rm -rf ${PADDLE_ROOT}/build/Makefile ${PADDLE_ROOT}/build/CMakeCache.txt
make -j `nproc` cmake_change=`git diff --name-only upstream/$BRANCH | grep "cmake/external" || true`
if [ ${cmake_change} ];then
rm -rf ${PADDLE_ROOT}/build/third_party
fi
bash -x paddle/scripts/paddle_build.sh build
[ $? -ne 0 ] && echo "build paddle failed." && exit 1 [ $? -ne 0 ] && echo "build paddle failed." && exit 1
unzip -q python/dist/*.whl -d /tmp/develop unzip -q python/dist/*.whl -d /tmp/develop
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册