Skip to content

Commit

Permalink
size update
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Jan 7, 2025
1 parent 16e1f42 commit feb8014
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .builder/actions/crt_size_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ def run(self, env):

print(f"Total NPM package file size: {total_size} bytes")
if total_size > max_size:
raise Exception(f'NPM package exceeds size limit of {max_size} bytes.')
raise Exception(f'NPM package exceeds size limit of {
max_size} bytes.')
2 changes: 1 addition & 1 deletion continuous-delivery/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ mkdir $UNZIP
tar -xf aws-crt-$CURRENT_TAG.tgz -C $UNZIP
PACK_FILE_SIZE_KB=$(du -sk $UNZIP | awk '{print $1}')
echo "Current package size: ${PACK_FILE_SIZE_KB}"
if expr $PACK_FILE_SIZE_KB \> "$((27000))" ; then
if expr $PACK_FILE_SIZE_KB \> "$((33000))" ; then
# the package size is too large, return -1
echo "Package size is too large!"
exit -1
Expand Down

0 comments on commit feb8014

Please sign in to comment.