Skip to content

Commit 3fa9207

Browse files
fix: use consistent platform names\n\n- Use --platform instead of --target in build command\n- Update target names to match Node.js platform names\n- Add debug output to see binary names
1 parent 82c5b08 commit 3fa9207

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@ jobs:
2121
matrix:
2222
settings:
2323
- host: macos-latest
24-
target: aarch64-apple-darwin
24+
target: darwin-arm64
2525
build: |
2626
npm install
27-
npx @napi-rs/cli build --target aarch64-apple-darwin
27+
npx @napi-rs/cli build --platform darwin-arm64
28+
echo "Binary after build:"
29+
ls -la *.node
2830
strip -x *.node
31+
echo "Binary after strip:"
32+
ls -la *.node
2933
runs-on: ${{ matrix.settings.host }}
3034

3135
steps:
@@ -134,7 +138,7 @@ jobs:
134138
platform:
135139
- name: macOS ARM64
136140
runner: macos-latest
137-
target: aarch64-apple-darwin
141+
target: darwin-arm64
138142

139143
runs-on: ${{ matrix.platform.runner }}
140144

0 commit comments

Comments
 (0)