diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 5c2309164dd026d753e40e5ddf351842f4f48249..6b19e154c721e7a8829a4f08a9333d128fdbc51b 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -809,6 +809,31 @@ function check_approvals_of_unittest() { exit 6 fi fi + elif [ $check_times == 3 ]; then + rm -f fluidInference_so_size + curl -O https://paddle-docker-tar.bj.bcebos.com/paddle_ci_index/fluidInference_so_size + oriBuildSize=`cat fluidInference_so_size` + curBuildSize=$(du -m --max-depth=0 ${PADDLE_ROOT}/build/paddle_inference_install_dir/paddle/lib/libpaddle_inference.so |awk '{print $1}') + apt-get install -y bc + diffSize=$(printf "%.2f" `echo "$curBuildSize - $oriBuildSize" | bc`) + cat <