Skip to content

Commit f699130

Browse files
committed
ci: fix build target
1 parent 3ad65cf commit f699130

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
build: |-
3636
set -e &&
3737
rustup target add x86_64-unknown-linux-gnu &&
38-
yarn build &&
38+
yarn build --target x86_64-unknown-linux-gnu &&
3939
llvm-strip -x *.node
4040
- host: macos-latest
4141
target: aarch64-apple-darwin
@@ -45,7 +45,7 @@ jobs:
4545
export CXX=$(xcrun -f clang++);
4646
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
4747
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
48-
yarn build
48+
yarn build --target aarch64-apple-darwin
4949
strip -x *.node
5050
name: stable - ${{ matrix.settings.target }} - node@16
5151
runs-on: ${{ matrix.settings.host }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"description": "node-unix-socket allows you to use SO_REUSEPORT, SOCK_SEQPACKET, SOCK_DGRAM in Node.js.",
1111
"scripts": {
1212
"artifacts": "napi artifacts",
13-
"build": "napi build --platform --js false --dts js/addon.d.ts && npm run build:ts",
14-
"build:release": "napi build --platform --release --js false --dts js/addon.d.ts && npm run build:ts",
13+
"build": "npm run build:ts && napi build --platform --js false --dts js/addon.d.ts",
14+
"build:release": "npm run build:ts && napi build --platform --release --js false --dts js/addon.d.ts",
1515
"build:ts": "tsc -p tsconfig.json",
1616
"check_mem": "node --max-old-space-size=128 scripts/dgram_memory.js",
1717
"doc": "typedoc --excludePrivate --excludeInternal --excludeExternals --plugin typedoc-plugin-markdown js/index.ts",

0 commit comments

Comments
 (0)