Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
75e8745a
Unverified
Commit
75e8745a
authored
Nov 02, 2022
by
ZackYoung
Committed by
GitHub
Nov 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feature][GitHub workflow] add package size check (#1186)
* 测试github workflow检查包大小 * 测试检查包大小 * 测试检查包大小,正常状态 * 修改shell格式
parent
6fab188d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
backend.yaml
.github/workflows/backend.yaml
+1
-1
check_package_size.sh
check_package_size.sh
+12
-0
No files found.
.github/workflows/backend.yaml
View file @
75e8745a
...
@@ -63,7 +63,7 @@ jobs:
...
@@ -63,7 +63,7 @@ jobs:
# 查看打包的大小
# 查看打包的大小
-
name
:
View package size
-
name
:
View package size
run
:
|
run
:
|
cd build && ls -l
h
./check_package_size.s
h
# - name: Run Unit tests
# - name: Run Unit tests
# run: |
# run: |
# ./mvnw -T 2C -B clean verify -Dmaven.test.skip=false -Dgpg.skip=true --no-snapshot-updates
# ./mvnw -T 2C -B clean verify -Dmaven.test.skip=false -Dgpg.skip=true --no-snapshot-updates
check_package_size.sh
0 → 100755
View file @
75e8745a
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment