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

fix static-check ci third_party cache (#42815)

上级 d3686376
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册