Skip to content

Commit 5d19303

Browse files
committed
fix(ci): resolve Alpine container issue on ARM64 runner
GitHub Actions JavaScript actions (checkout@v4, setup-zig@v2) don't support Alpine containers on ARM64 runners. Solution: Remove container config and build directly on Ubuntu ARM64 runner using Zig cross-compilation to musl target.
1 parent af354d0 commit 5d19303

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,16 +187,19 @@ jobs:
187187

188188
linux-musl-arm64:
189189
runs-on: ubuntu-24.04-arm
190-
container:
191-
image: alpine:latest
192190
env:
193191
ZIG_TARGET: aarch64-linux-musl
194192
steps:
195193
- name: Checkout
196194
uses: actions/checkout@v4
197195

196+
- name: Setup Node.js
197+
uses: actions/setup-node@v4
198+
with:
199+
node-version: 18
200+
198201
- name: Install system dependencies
199-
run: apk add --no-cache nodejs npm bash build-base cmake ninja python3 curl unzip git autoconf automake libtool pkgconfig
202+
run: sudo apt-get update && sudo apt-get install -y build-essential cmake ninja-build python3 curl unzip git autoconf automake libtool pkg-config
200203

201204
- name: Setup Zig
202205
uses: mlugg/setup-zig@v2

0 commit comments

Comments
 (0)