Skip to content

Commit

Permalink
add arm mac support
Browse files Browse the repository at this point in the history
  • Loading branch information
YassinEldeeb committed Jan 25, 2024
1 parent baf12d0 commit 5047dcc
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/napi-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
set -e &&
yarn build --target x86_64-unknown-linux-gnu &&
strip *.node
- host: macos-latest
target: aarch64-apple-darwin
build: |
yarn build --target aarch64-apple-darwin
strip -x *.node
name: stable - ${{ matrix.settings.target }} - node@18
runs-on: ${{ matrix.settings.host }}
defaults:
Expand Down
3 changes: 3 additions & 0 deletions libs/napi/npm/darwin-arm64/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `haah-darwin-arm64`

This is the **aarch64-apple-darwin** binary for `haah`
18 changes: 18 additions & 0 deletions libs/napi/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "haah-darwin-arm64",
"version": "0.0.0",
"os": [
"darwin"
],
"cpu": [
"arm64"
],
"main": "haah.darwin-arm64.node",
"files": [
"haah.darwin-arm64.node"
],
"license": "MIT",
"engines": {
"node": ">= 10"
}
}
3 changes: 2 additions & 1 deletion libs/napi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"defaults": false,
"additional": [
"x86_64-apple-darwin",
"x86_64-unknown-linux-gnu"
"x86_64-unknown-linux-gnu",
"aarch64-apple-darwin"
]
}
},
Expand Down

0 comments on commit 5047dcc

Please sign in to comment.