Skip to content

Commit 80e2b04

Browse files
committed
Add arm64 Linux builds
1 parent a6caf65 commit 80e2b04

File tree

3 files changed

+35
-4
lines changed

3 files changed

+35
-4
lines changed

.github/workflows/CI.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
target: x86_64-unknown-linux-gnu
4242
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
4343
build: pnpm run build --target x86_64-unknown-linux-gnu
44+
- host: ubuntu-latest
45+
target: aarch64-unknown-linux-gnu
46+
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
47+
build: pnpm run build --target aarch64-unknown-linux-gnu
4448
- host: macos-latest
4549
target: aarch64-apple-darwin
4650
build: pnpm run build --target aarch64-apple-darwin
@@ -60,14 +64,12 @@ jobs:
6064
if: ${{ !matrix.settings.docker }}
6165
with:
6266
node-version: 24
63-
- name: Install
64-
uses: dtolnay/rust-toolchain@stable
67+
- uses: dtolnay/rust-toolchain@stable
6568
if: ${{ !matrix.settings.docker }}
6669
with:
6770
toolchain: stable
6871
targets: ${{ matrix.settings.target }}
69-
- name: Cache cargo
70-
uses: actions/cache@v4
72+
- uses: actions/cache@v4
7173
with:
7274
path: |
7375
~/.cargo/registry/index/

npm/linux-arm64-gnu/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `python-node-linux-x64-gnu`
2+
3+
This is the **x86_64-unknown-linux-gnu** binary for `python-node`

npm/linux-arm64-gnu/package.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "python-node-linux-arm64-gnu",
3+
"version": "0.0.0",
4+
"os": [
5+
"linux"
6+
],
7+
"cpu": [
8+
"arm64"
9+
],
10+
"main": "python-node.linux-arm64-gnu.node",
11+
"files": [
12+
"python-node.linux-arm64-gnu.node",
13+
"fix-python-soname.js",
14+
"fix-python-soname.wasm"
15+
],
16+
"scripts": {
17+
"postinstall": "node fix-python-soname.js"
18+
},
19+
"license": "MIT",
20+
"engines": {
21+
"node": ">= 10"
22+
},
23+
"libc": [
24+
"glibc"
25+
]
26+
}

0 commit comments

Comments
 (0)