未验证 提交 24e395f6 编写于 作者: R risemeup1 提交者: GitHub

fix build_ci bug,test=docuement_fix (#46467)

上级 0a5b2e79
...@@ -3481,10 +3481,7 @@ function build_pr_and_develop() { ...@@ -3481,10 +3481,7 @@ function build_pr_and_develop() {
generate_api_spec "$1" "PR" generate_api_spec "$1" "PR"
mkdir ${PADDLE_ROOT}/build/pr_whl && cp ${PADDLE_ROOT}/build/python/dist/*.whl ${PADDLE_ROOT}/build/pr_whl mkdir ${PADDLE_ROOT}/build/pr_whl && cp ${PADDLE_ROOT}/build/python/dist/*.whl ${PADDLE_ROOT}/build/pr_whl
rm -f ${PADDLE_ROOT}/build/python/dist/*.whl && rm -f ${PADDLE_ROOT}/build/python/build/.timestamp rm -f ${PADDLE_ROOT}/build/python/dist/*.whl && rm -f ${PADDLE_ROOT}/build/python/build/.timestamp
if [[ ${cmake_change} ]];then
rm -rf ${PADDLE_ROOT}/build/Makefile ${PADDLE_ROOT}/build/CMakeCache.txt
rm -rf ${PADDLE_ROOT}/build/third_party
fi
git fetch upstream develop git fetch upstream develop
git checkout develop git checkout develop
...@@ -3495,6 +3492,10 @@ function build_pr_and_develop() { ...@@ -3495,6 +3492,10 @@ function build_pr_and_develop() {
mkdir ${PADDLE_ROOT}/build/dev_whl && wget -q -P ${PADDLE_ROOT}/build/dev_whl ${dev_url} mkdir ${PADDLE_ROOT}/build/dev_whl && wget -q -P ${PADDLE_ROOT}/build/dev_whl ${dev_url}
cp ${PADDLE_ROOT}/build/dev_whl/paddlepaddle_gpu-0.0.0-cp37-cp37m-linux_x86_64.whl ${PADDLE_ROOT}/build/python/dist cp ${PADDLE_ROOT}/build/dev_whl/paddlepaddle_gpu-0.0.0-cp37-cp37m-linux_x86_64.whl ${PADDLE_ROOT}/build/python/dist
else else
if [[ ${cmake_change} ]];then
rm -rf ${PADDLE_ROOT}/build/Makefile ${PADDLE_ROOT}/build/CMakeCache.txt
rm -rf ${PADDLE_ROOT}/build/third_party
fi
git checkout -b develop_base_pr upstream/$BRANCH git checkout -b develop_base_pr upstream/$BRANCH
run_setup ${PYTHON_ABI:-""} bdist_wheel ${parallel_number} run_setup ${PYTHON_ABI:-""} bdist_wheel ${parallel_number}
if [ ! -d "${PADDLE_ROOT}/build/python/dist/" ]; then if [ ! -d "${PADDLE_ROOT}/build/python/dist/" ]; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册