B11: ship npm binaries for linux-arm64 and win32-arm64

The napi loader resolves wickra-linux-arm64-gnu and
wickra-win32-arm64-msvc, but neither was published, so require('wickra')
failed on those platforms. Adds both to napi.triples and
optionalDependencies, adds their npm/ package templates, and extends the
release node-build matrix to build them on GitHub's native ARM runners
(ubuntu-24.04-arm, windows-11-arm).
This commit is contained in:
kingchenc
2026-05-22 04:17:23 +02:00
parent 490ce28645
commit 2fc7a90ec0
4 changed files with 59 additions and 2 deletions
+2
View File
@@ -141,9 +141,11 @@ jobs:
matrix:
include:
- { host: ubuntu-latest, target: x86_64-unknown-linux-gnu }
- { host: ubuntu-24.04-arm, target: aarch64-unknown-linux-gnu }
- { host: macos-latest, target: x86_64-apple-darwin }
- { host: macos-latest, target: aarch64-apple-darwin }
- { host: windows-latest, target: x86_64-pc-windows-msvc }
- { host: windows-11-arm, target: aarch64-pc-windows-msvc }
runs-on: ${{ matrix.host }}
steps:
- uses: actions/checkout@v4
@@ -0,0 +1,27 @@
{
"name": "wickra-linux-arm64-gnu",
"version": "0.1.4",
"description": "Native binding for wickra (linux arm64 GNU). Installed automatically as an optional dependency of wickra on matching platforms.",
"main": "wickra.linux-arm64-gnu.node",
"files": [
"wickra.linux-arm64-gnu.node"
],
"license": "SEE LICENSE IN LICENSE",
"engines": {
"node": ">= 16"
},
"os": [
"linux"
],
"cpu": [
"arm64"
],
"libc": [
"glibc"
],
"repository": {
"type": "git",
"url": "https://github.com/kingchenc/wickra"
},
"homepage": "https://github.com/kingchenc/wickra"
}
@@ -0,0 +1,24 @@
{
"name": "wickra-win32-arm64-msvc",
"version": "0.1.4",
"description": "Native binding for wickra (Windows arm64 MSVC). Installed automatically as an optional dependency of wickra on matching platforms.",
"main": "wickra.win32-arm64-msvc.node",
"files": [
"wickra.win32-arm64-msvc.node"
],
"license": "SEE LICENSE IN LICENSE",
"engines": {
"node": ">= 16"
},
"os": [
"win32"
],
"cpu": [
"arm64"
],
"repository": {
"type": "git",
"url": "https://github.com/kingchenc/wickra"
},
"homepage": "https://github.com/kingchenc/wickra"
}
+6 -2
View File
@@ -35,9 +35,11 @@
"defaults": false,
"additional": [
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc"
"x86_64-pc-windows-msvc",
"aarch64-pc-windows-msvc"
]
}
},
@@ -46,9 +48,11 @@
},
"optionalDependencies": {
"wickra-linux-x64-gnu": "0.1.4",
"wickra-linux-arm64-gnu": "0.1.4",
"wickra-darwin-x64": "0.1.4",
"wickra-darwin-arm64": "0.1.4",
"wickra-win32-x64-msvc": "0.1.4"
"wickra-win32-x64-msvc": "0.1.4",
"wickra-win32-arm64-msvc": "0.1.4"
},
"scripts": {
"build": "napi build --platform --release",