Unverified Commit 75e8745a authored by ZackYoung's avatar ZackYoung Committed by GitHub

[feature][GitHub workflow] add package size check (#1186)

* 测试github workflow检查包大小 * 测试检查包大小 * 测试检查包大小,正常状态 * 修改shell格式
parent 6fab188d
......@@ -63,7 +63,7 @@ jobs:
# 查看打包的大小
- name: View package size
run: |
cd build && ls -lh
./check_package_size.sh
# - name: Run Unit tests
# run: |
# ./mvnw -T 2C -B clean verify -Dmaven.test.skip=false -Dgpg.skip=true --no-snapshot-updates
cd build
total_text=$(ls -ls | grep total)
total_size=${total_text/'total '/''}
echo `ls -lh`
if [[ ${total_size} -gt 204800 ]]; then
echo "尺寸为:$total_size,大于200mb,编译失败"
exit 1
else
exit 0
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment