Skip to content

Commit

Permalink
size
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Jan 27, 2025
1 parent e583e69 commit cbd697f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .builder/actions/crt_size_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def run(self, env):
# Maximum package size (for current platform) in bytes
# NOTE: if you increase this, you might also need to increase the
# limit in continuous-delivery/pack.sh
max_size = 8_400_000
max_size = 9_000_000
# size of current folder
folder_size = 0
# total size in bytes
Expand Down 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.')
22 changes: 21 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
image:
- al2012-x64
- al2-x64
- manylinux2014-aarch64
- manylinux2014-x64
- fedora-34-x64
- opensuse-leap
Expand All @@ -46,6 +45,27 @@ jobs:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }}
linux-compat-armv8:
runs-on: codebuild-aws-crt-nodejs-arm64-${{ github.run_id }}-${{ github.run_attempt }}-arm-3.0-large
strategy:
fail-fast: false
matrix:
image:
- manylinux2014-aarch64
steps:
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.CRT_CI_ROLE }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
- name: Build ${{ env.PACKAGE_NAME }}
run: |
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }}
musl-linux:
runs-on: ubuntu-24.04 # latest
strategy:
Expand Down

0 comments on commit cbd697f

Please sign in to comment.