From a80fe67f8482e6fc216fbed9ce705a00c677b05c Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Fri, 5 Feb 2021 09:52:30 +0800 Subject: [PATCH] Change cmake/third_party files for CI (#30833) --- paddle/scripts/paddle_build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 97ea111f2ba..ac404ec9106 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -714,6 +714,10 @@ function generate_upstream_develop_api_spec() { git branch -D develop_base_pr ENABLE_MAKE_CLEAN="ON" 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 } function generate_api_spec() { -- GitLab