Skip to content

Commit 44c17f5

Browse files
committed
perf: optimize ARM64 QEMU build to fit within 6h GitHub Actions limit
- Add --without-npm --without-corepack to skip unnecessary components - Reduce parallelism to -j2 for more stable QEMU execution - Add step-level timeout-minutes for explicit control GitHub Actions has a hard 6-hour limit for public repos.
1 parent 99e8007 commit 44c17f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build_node_shared.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ jobs:
9999

100100
- name: Configure and Build (Linux ARM64 with QEMU)
101101
if: matrix.platform == 'linux' && matrix.arch == 'arm64'
102+
timeout-minutes: 720 # 12 hours for QEMU emulation
102103
run: |
103104
docker run --rm --platform linux/arm64 \
104105
-v $(pwd):${{ github.workspace }} -w ${{ github.workspace }} \
@@ -111,8 +112,8 @@ jobs:
111112
export CC=clang
112113
export CXX=clang++
113114
fi && \
114-
./configure --shared && \
115-
make -j\$(nproc)
115+
./configure --shared --without-npm --without-corepack && \
116+
make -j2
116117
"
117118
118119
- name: Configure and Build (Linux x64 and macOS)

0 commit comments

Comments
 (0)