Skip to content

Commit 61df903

Browse files
rathbomaclaude
andcommitted
Add QEMU compatibility flags for ARM64 workflows
Add Docker platform flags and limit parallel jobs to reduce segfaults in node-gyp under QEMU emulation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent d1f804c commit 61df903

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/electron-arm64.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
arch: aarch64
2121
distro: ubuntu22.04
2222

23+
# Docker options to improve QEMU compatibility
24+
dockerRunArgs: |
25+
--platform linux/arm64/v8
26+
2327
# Install dependencies in the container
2428
install: |
2529
apt-get update -q -y
@@ -43,6 +47,10 @@ jobs:
4347
node --version
4448
npm --version
4549
50+
# Set environment variables to help with QEMU/node-gyp compatibility
51+
export npm_config_jobs=1
52+
export JOBS=1
53+
4654
echo "Installing dependencies..."
4755
npm install
4856

.github/workflows/nodejs-arm64.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
arch: aarch64
2121
distro: ubuntu22.04
2222

23+
# Docker options to improve QEMU compatibility
24+
dockerRunArgs: |
25+
--platform linux/arm64/v8
26+
2327
# Install dependencies in the container
2428
install: |
2529
apt-get update -q -y
@@ -39,6 +43,10 @@ jobs:
3943
node --version
4044
npm --version
4145
46+
# Set environment variables to help with QEMU/node-gyp compatibility
47+
export npm_config_jobs=1
48+
export JOBS=1
49+
4250
echo "Installing dependencies..."
4351
npm install
4452

0 commit comments

Comments
 (0)