Skip to content

Commit afd0d0a

Browse files
committed
fix(build): use container pnpm for Alpine Docker builds
Fix "exec format error" when building Alpine ARM64 binaries by ensuring the container uses its own pnpm installation instead of the host's x64 binary: - Override PNPM_HOME to point to container's pnpm location - Use sh -c to ensure clean environment execution This prevents architecture mismatch errors when building cross-platform.
1 parent b42ebcb commit afd0d0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-smol.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,9 @@ jobs:
428428
--platform linux/${{ matrix.arch == 'x64' && 'amd64' || 'arm64' }} \
429429
-v $PWD:/workspace \
430430
-w /workspace \
431+
-e PNPM_HOME=/usr/local/bin \
431432
smol-alpine-builder:${{ matrix.arch }} \
432-
pnpm --filter @socketbin/node-smol-builder run build
433+
sh -c 'pnpm --filter @socketbin/node-smol-builder run build'
433434
434435
- name: Verify smol binary
435436
if: steps.check-platform.outputs.should-run == 'true'

0 commit comments

Comments
 (0)