Skip to content

Commit 3e5a2a9

Browse files
authored
Update prebuild config (#19)
Allows prebuild for: * napi electron to be useful for atom * windows ia32 (built from windows64)
1 parent 634fbe4 commit 3e5a2a9

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ os:
1313
- linux
1414
- windows
1515
after_script:
16-
- npm run benchmark
16+
- npm run benchmark:small
17+
- npm run benchmark:regular
1718
before_deploy:
1819
- ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-`uname -m`.tar"
1920
- npm install
2021
- npm run native:prebuild
21-
- npm run benchmark
22-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ARCH=ia32 npm run native:prebuild; fi
22+
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then npm run native:prebuild-ia32; fi
2323
- tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds"
2424
.
2525
deploy:
@@ -32,3 +32,5 @@ deploy:
3232
tags: true
3333
node: node
3434
api_key: $GITHUB_TOKEN
35+
after_deploy:
36+
- npm run benchmark

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ test_script:
2525

2626
after_test:
2727
- ps: If ($env:nodejs_version -eq "Current") { npm run native:prebuild }
28+
- ps: If ($env:nodejs_version -eq "Current") { npm run native:prebuild-ia32 }
2829

2930
artifacts:
3031
- path: prebuilds

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "fuzzaldrin-plus-fast",
3-
"version": "0.11.2",
3+
"version": "0.12.0",
44
"description": "Fuzzaldrin plus - fast using native c bindings",
55
"main": "fuzzaldrin-dist.js",
66
"scripts": {
77
"native:clean": "shx rm -rf build prebuilds",
88
"native:build": "node-gyp-build",
9-
"native:prebuild": "prebuildify --napi",
9+
"native:prebuild": "prebuildify --napi --electron-compat --strip",
10+
"native:prebuild-ia32": "prebuildify --arch=ia32 --napi --electron-compat --strip",
1011
"js:clean": "shx rm -rf dist .parcel-cache",
1112
"js:dev": "cross-env NODE_ENV=development parcel watch --target main fuzzaldrin.coffee",
1213
"js:build": "cross-env NODE_ENV=production parcel build --target main fuzzaldrin.coffee",
@@ -59,4 +60,4 @@
5960
"url": "https://github.com/rajendrant/fuzzaldrin-plus-fast/issues"
6061
},
6162
"homepage": "https://github.com/rajendrant/fuzzaldrin-plus-fast"
62-
}
63+
}

0 commit comments

Comments
 (0)