Skip to content

Commit

Permalink
arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphsps committed Jun 30, 2024
1 parent 09312d3 commit 6ee77b9
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 7 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ permissions:
push:
branches:
- main
- dev/arm64
tags-ignore:
- '**'
paths-ignore:
Expand All @@ -28,6 +29,9 @@ jobs:
- host: macos-latest
target: x86_64-apple-darwin
build: yarn build
- host: macos-latest
target: aarch64-apple-darwin
build: yarn build
- host: windows-latest
build: yarn build
target: x86_64-pc-windows-msvc
Expand Down Expand Up @@ -109,6 +113,8 @@ jobs:
settings:
- host: macos-latest
target: x86_64-apple-darwin
- host: macos-latest
target: aarch64-apple-darwin
- host: windows-latest
target: x86_64-pc-windows-msvc
node:
Expand Down Expand Up @@ -184,7 +190,10 @@ jobs:
with:
path: artifacts
- name: Rename Darwin Artifacts
run: yarn rename
run: |
mv ./artifacts/bindings-x86_64-apple-darwin/binarystream.darwin-arm64.node ./artifacts/bindings-x86_64-apple-darwin/binarystream.darwin-x64.node
- name: List artifacts
run: ls -R ./artifacts
- name: Move artifacts
run: yarn artifacts
- name: List packages
Expand Down
3 changes: 3 additions & 0 deletions npm/darwin-arm64/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `@serenityjs/binarystream-darwin-arm64`

This is the **aarch64-apple-darwin** binary for `@serenityjs/binarystream`
19 changes: 19 additions & 0 deletions npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@serenityjs/binarystream-darwin-arm64",
"repository": "https://github.com/SerenityJS/binarystream",
"version": "2.6.5",
"os": [
"darwin"
],
"cpu": [
"arm64"
],
"main": "binarystream.darwin-arm64.node",
"files": [
"binarystream.darwin-arm64.node"
],
"license": "MIT",
"engines": {
"node": ">= 10"
}
}
2 changes: 1 addition & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"engines": {
"node": ">= 10"
}
}
}
2 changes: 1 addition & 1 deletion npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
"libc": [
"glibc"
]
}
}
2 changes: 1 addition & 1 deletion npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"engines": {
"node": ">= 10"
}
}
}
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
"types": "index.d.ts",
"napi": {
"name": "binarystream",
"triples": {}
"triples": {
"defaults": true,
"additional": [
"aarch64-darwin"
]
}
},
"license": "MIT",
"devDependencies": {
Expand All @@ -27,7 +32,6 @@
"prepublishOnly": "napi prepublish -t npm",
"test": "ava",
"universal": "napi universal",
"version": "napi version",
"rename": "mv ./artifacts/bindings-x86_64-apple-darwin/binarystream.darwin-arm64.node ./artifacts/bindings-x86_64-apple-darwin/binarystream.darwin-x64.node"
"version": "napi version"
}
}

0 comments on commit 6ee77b9

Please sign in to comment.