Skip to content

Commit 4a1c837

Browse files
committed
fix: update build-linux.yml to use macOS runner for ARMv7 emulation and improve cleanup steps
1 parent 1c8900f commit 4a1c837

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/build-linux.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,26 @@ on:
99
default: "22"
1010
jobs:
1111
linux-armv7:
12-
runs-on: ubuntu-22.04
12+
runs-on: macos-14 # ARM64 runner for better ARMv7 emulation performance
1313

14-
strategy:
15-
fail-fast: false
1614
steps:
1715
- uses: actions/checkout@v4
1816

1917
- name: Set up Docker Buildx
2018
uses: docker/setup-buildx-action@v3
19+
with:
20+
driver-opts: |
21+
image=moby/buildkit:latest
22+
buildkitd-flags: --allow-insecure-entitlement=security.insecure --allow-insecure-entitlement=network.host
23+
24+
# Remove unneeded stuff to free up build space (from Node https://github.com/nodejs/build/issues/3878)
25+
- name: Cleanup before build
26+
run: |
27+
sudo rm -rf /Users/runner/Library/Android/sdk
28+
sudo rm -rf /Users/runner/Library/Developer/CoreSimulator/Caches
29+
echo "::group::Free space after cleanup"
30+
df -h
31+
echo "::endgroup::"
2132
2233
- name: Build
2334
id: build

0 commit comments

Comments
 (0)