mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 19:36:04 +00:00
- build-zip --source=chrome-headless-shell stages only the repo's pinned build (managedChromeVersion) and only when its folder matches the pinned digest (isPinnedHeadlessShell), instead of the newest folder in the cache. The folder cannot fit a ZIP function, so lambda deploy refuses --chrome-source chrome-headless-shell up front on either arch, and the docs say the arm64 video image is where the shell runs. - build-zip prints the headroom under the unzipped gate, and a new "Lambda handler ZIP" workflow builds the ZIP on PRs that touch the code it bundles, so growth fails before merge rather than in the release job. - The arm64 image keeps @sparticuz/chromium's fonts and fonts.conf from the handler ZIP (FONTCONFIG_PATH=/var/task/fonts) instead of liberation-fonts, so text falls back to the same fonts as on x86. The image workflow renders a mixed-script page on both arches and fails when any line resolves to different platform fonts. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
51 lines
1.6 KiB
YAML
51 lines
1.6 KiB
YAML
name: Lambda handler ZIP
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
# The x86 handler ZIP sits close to its unzipped-size gate, and the handler bundles the producer, engine and core,
|
|
# so a change there can push it over. Build it on those PRs, so that fails before merge, not in the release job.
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "packages/aws-lambda/**"
|
|
- "packages/producer/src/**"
|
|
- "packages/engine/src/**"
|
|
- "packages/core/src/**"
|
|
- "packages/parsers/src/**"
|
|
- "bun.lock"
|
|
- ".github/workflows/lambda-handler-zip.yml"
|
|
|
|
concurrency:
|
|
group: lambda-handler-zip-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
changes:
|
|
name: Detect changes
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 4
|
|
outputs:
|
|
release_only: ${{ steps.release.outputs.release_only }}
|
|
steps:
|
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Find a release-only diff
|
|
id: release
|
|
uses: ./.github/actions/release-only-diff
|
|
|
|
handler-zip:
|
|
name: Handler ZIP size
|
|
needs: changes
|
|
# A release PR changes versions and notes only; a failed change detection must not skip the build.
|
|
if: ${{ !cancelled() && needs.changes.outputs.release_only != 'true' }}
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
|
|
- run: bun install --frozen-lockfile
|
|
- run: bun run build
|
|
- run: bun run --cwd packages/aws-lambda build:zip
|