From 6e45a0fb24fcda6ca290210873b4d1f39f6e1ed5 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Wed, 18 May 2022 10:25:54 +0800 Subject: [PATCH] fix static-check ci third_party cache (#42815) --- paddle/scripts/paddle_build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 3a2c51fe72b..251e3704c93 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -981,9 +981,6 @@ function generate_upstream_develop_api_spec() { rm -rf ${PADDLE_ROOT}/build/Makefile ${PADDLE_ROOT}/build/CMakeCache.txt cmake_change=`git diff --name-only upstream/$BRANCH | grep "cmake/external" || true` - if [[ ${cmake_change} ]];then - rm -rf ${PADDLE_ROOT}/build/third_party - fi cd ${PADDLE_ROOT} git checkout . @@ -995,6 +992,9 @@ function generate_upstream_develop_api_spec() { if [ "$url_return" == '200' ];then mkdir -p ${PADDLE_ROOT}/build/python/dist && wget -q -P ${PADDLE_ROOT}/build/python/dist ${dev_url} else + if [[ ${cmake_change} ]];then + rm -rf ${PADDLE_ROOT}/build/third_party + fi cmake_gen $1 build $2 fi -- GitLab