From 2c05a3db29c358febfc000321a221b11e94356af Mon Sep 17 00:00:00 2001 From: James Smith Date: Mon, 4 Nov 2024 04:29:57 +0000 Subject: [PATCH] add musl build for arm platform (#192) Useful for arm Docker containers based on alpine --- .github/workflows/release.yml | 5 +++++ scripts/build-npm.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1df487..1391ab5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,6 +50,11 @@ jobs: libc: glibc image: ghcr.io/prebuild/linux-armv7:2.1.1 node: 18 + - os: ubuntu-latest + arch: arm + libc: musl + image: ghcr.io/prebuild/linux-armv7l-musl:2.1.1 + node: 18 - os: ubuntu-latest arch: arm64 image: ghcr.io/prebuild/android-arm64:2.1.1 diff --git a/scripts/build-npm.js b/scripts/build-npm.js index 5b352ad..a1f3969 100644 --- a/scripts/build-npm.js +++ b/scripts/build-npm.js @@ -48,6 +48,11 @@ const triples = [ arch: 'arm', libc: 'glibc' }, + { + platform: 'linux', + arch: 'arm', + libc: 'musl' + }, { platform: 'android', arch: 'arm64'