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

Fix model_benchmark CI (#36047)

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