Skip to content

Commit 7d1fd75

Browse files
feat: build both archs instead of universal binary
1 parent 9170e86 commit 7d1fd75

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

‎packages/core/moon.yml‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,27 @@ tasks:
88
- build-native-addon
99
- build-tracer-client
1010

11+
build-native-addon-x64:
12+
command: prebuildify --napi --strip --arch x64
13+
14+
build-native-addon-arm64:
15+
command: prebuildify --napi --strip --arch arm64
16+
1117
build-native-addon:
12-
command: prebuildify --napi --strip --arch x64+arm64
18+
deps:
19+
- build-native-addon-x64
20+
- build-native-addon-arm64
21+
command: noop
1322
inputs:
1423
- "src/native_core/**/*.cc"
1524
- "src/native_core/**/*.c"
1625
- "src/native_core/**/*.h"
1726
- "binding.gyp"
1827
outputs:
1928
- "prebuilds"
29+
options:
30+
# Prebuildify can only build one target at a time
31+
runDepsInParallel: false
2032

2133
build-tracer-client:
2234
inputs:

0 commit comments

Comments
 (0)