Skip to content

Commit d866bab

Browse files
feat: apple silicon only\n\n- Limit initial release to Apple Silicon (M1/M2/M3) Macs\n- Update CI workflow to only build for aarch64-apple-darwin\n- Update README to document platform support\n- Other platforms will be added behind a feature flag in future releases
1 parent 1c5b04a commit d866bab

File tree

3 files changed

+5
-46
lines changed

3 files changed

+5
-46
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -19,44 +19,12 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
settings:
22-
- host: macos-latest
23-
target: x86_64-apple-darwin
24-
build: |
25-
npm install
26-
npx @napi-rs/cli build --target x86_64-apple-darwin
27-
strip -x *.node
2822
- host: macos-latest
2923
target: aarch64-apple-darwin
3024
build: |
3125
npm install
3226
npx @napi-rs/cli build --target aarch64-apple-darwin
3327
strip -x *.node
34-
- host: windows-latest
35-
target: x86_64-pc-windows-msvc
36-
build: |
37-
npm install
38-
npx @napi-rs/cli build --target x86_64-pc-windows-msvc
39-
- host: windows-latest
40-
target: aarch64-pc-windows-msvc
41-
build: |
42-
npm install
43-
npx @napi-rs/cli build --target aarch64-pc-windows-msvc
44-
- host: ubuntu-latest
45-
target: x86_64-unknown-linux-gnu
46-
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
47-
build: |
48-
set -e &&
49-
npm install &&
50-
npx @napi-rs/cli build --target x86_64-unknown-linux-gnu &&
51-
strip *.node
52-
- host: ubuntu-latest
53-
target: aarch64-unknown-linux-gnu
54-
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
55-
build: |
56-
set -e &&
57-
npm install &&
58-
npx @napi-rs/cli build --target aarch64-unknown-linux-gnu &&
59-
aarch64-unknown-linux-gnu-strip *.node
6028
6129
6230
name: stable - ${{ matrix.settings.target }} - node@18
@@ -328,7 +296,7 @@ jobs:
328296
- name: Move artifacts
329297
run: |
330298
mkdir -p dist
331-
find . -type f -name '*.node' -exec mv {} . \;
299+
find . -type f -name 'cel-typescript.*.node' -exec mv {} . \;
332300
333301
- name: List files
334302
run: |

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ npm install @kevinmichaelchen/cel-typescript
2424

2525
- Node.js 18 or later
2626

27-
This package includes pre-compiled native binaries for multiple platforms:
28-
29-
- macOS (x64, arm64)
30-
- Linux (x64, arm64)
31-
- Windows (x64)
27+
This package currently only includes pre-compiled native binaries for Apple Silicon (M1/M2/M3) Macs. Support for other platforms (Intel Macs, Linux, Windows) is planned for future releases and will be available behind a feature flag.
3228

3329
The appropriate binary for your platform will be automatically loaded at
3430
runtime.

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kevinmichaelchen/cel-typescript",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"type": "module",
55
"description": "TypeScript bindings for the Common Expression Language (CEL) using cel-rust",
66
"repository": {
@@ -44,14 +44,9 @@
4444
"napi": {
4545
"name": "cel-typescript",
4646
"triples": {
47-
"defaults": true,
47+
"defaults": false,
4848
"additional": [
49-
"aarch64-apple-darwin",
50-
"aarch64-unknown-linux-gnu",
51-
"aarch64-pc-windows-msvc",
52-
"x86_64-unknown-linux-gnu",
53-
"x86_64-apple-darwin",
54-
"x86_64-pc-windows-msvc"
49+
"aarch64-apple-darwin"
5550
]
5651
}
5752
},

0 commit comments

Comments
 (0)