Skip to content

chore(s3-deployment): increase default memory limit from 128MB to 512MB #3570

chore(s3-deployment): increase default memory limit from 128MB to 512MB

chore(s3-deployment): increase default memory limit from 128MB to 512MB #3570

Workflow file for this run

name: PR Build
on:
workflow_dispatch: {}
merge_group: {}
push:
branches:
- main
- v2-release
pull_request:
branches:
- main
- v2-release
# For every PR, cancel any previous builds in progress
# ... but for all other builds we keep them running
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
pr-build:
if: github.repository != 'aws/aws-cdk'
runs-on: aws-cdk_ubuntu-latest_32-core
env:
PR_BUILD: true
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: "18"
cache: "yarn"
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Load Docker images
id: docker-cache
uses: actions/cache/restore@v4
with:
path: |
~/.docker-images.tar
key: docker-cache-${{ runner.os }}
- name: Restore Docker images
if: ${{ steps.docker-cache.outputs.cache-hit }}
run: docker image load --input ~/.docker-images.tar
- name: Cache build artifacts
uses: actions/cache@v4
with:
path: |
~/.s3buildcache
key: s3buildcache-${{ runner.os }}
- name: Configure system settings
run: |
(command -v sysctl || sudo apt-get update && sudo apt-get install -y procps) && \
sudo sysctl -w vm.max_map_count=2251954
- name: Build
run: /bin/bash ./build.sh --ci
- name: Run Rosetta
run: /bin/bash ./scripts/run-rosetta.sh
- name: Check for uncommitted changes
run: git diff-index --exit-code --ignore-space-at-eol --stat HEAD
- name: Export Docker images
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
run: docker image save --output ~/.docker-images.tar $(docker image list --format '{{ if ne .Repository "<none>" }}{{ .Repository }}{{ if ne .Tag "<none>" }}:{{ .Tag }}{{ end }}{{ else }}{{ .ID }}{{ end }}')
- name: Cache Docker images
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
uses: actions/cache/save@v4
with:
path: |
~/.docker-images.tar
key: docker-cache-${{ runner.os }}