Skip to content

Commit 1877bb1

Browse files
committed
feat(ci): build socket package bootstrap before SEA and smol builds
Add build step to create packages/socket/dist/bootstrap.js before building SEA and smol binaries. Both build processes embed this bootstrap file into their Node.js binaries. Changes: - build-sea.yml: Build socket bootstrap before SEA binary creation - build-smol.yml: Build socket bootstrap before smol compilation This ensures the bootstrap exists when: - node-sea-builder creates SEA blob with embedded CLI - node-smol-builder copies to internal/bootstrap/socketsecurity Fixes SIGABRT crash: Cannot find native builtin: "internal/bootstrap/socketsecurity"
1 parent 8a00f66 commit 1877bb1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build-sea.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ jobs:
8181
- name: Install dependencies
8282
run: pnpm install --frozen-lockfile
8383

84+
- name: Build socket package bootstrap
85+
run: pnpm --filter socket run build
86+
8487
- name: Generate WASM cache keys
8588
id: wasm-cache-keys
8689
shell: bash

.github/workflows/build-smol.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ jobs:
8181
- name: Install dependencies
8282
run: pnpm install --frozen-lockfile
8383

84+
- name: Build socket package bootstrap
85+
run: pnpm --filter socket run build
86+
8487
- name: Generate smol build cache key
8588
id: smol-cache-key
8689
shell: bash

0 commit comments

Comments
 (0)