Skip to content

Commit

Permalink
Update prebuild config (#19)
Browse files Browse the repository at this point in the history
Allows prebuild for:
* napi electron to be useful for atom
* windows ia32 (built from windows64)
  • Loading branch information
rajendrant authored Sep 3, 2020
1 parent 634fbe4 commit 3e5a2a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ os:
- linux
- windows
after_script:
- npm run benchmark
- npm run benchmark:small
- npm run benchmark:regular
before_deploy:
- ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-`uname -m`.tar"
- npm install
- npm run native:prebuild
- npm run benchmark
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ARCH=ia32 npm run native:prebuild; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then npm run native:prebuild-ia32; fi
- tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds"
.
deploy:
Expand All @@ -32,3 +32,5 @@ deploy:
tags: true
node: node
api_key: $GITHUB_TOKEN
after_deploy:
- npm run benchmark
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ test_script:

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

artifacts:
- path: prebuilds
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "fuzzaldrin-plus-fast",
"version": "0.11.2",
"version": "0.12.0",
"description": "Fuzzaldrin plus - fast using native c bindings",
"main": "fuzzaldrin-dist.js",
"scripts": {
"native:clean": "shx rm -rf build prebuilds",
"native:build": "node-gyp-build",
"native:prebuild": "prebuildify --napi",
"native:prebuild": "prebuildify --napi --electron-compat --strip",
"native:prebuild-ia32": "prebuildify --arch=ia32 --napi --electron-compat --strip",
"js:clean": "shx rm -rf dist .parcel-cache",
"js:dev": "cross-env NODE_ENV=development parcel watch --target main fuzzaldrin.coffee",
"js:build": "cross-env NODE_ENV=production parcel build --target main fuzzaldrin.coffee",
Expand Down Expand Up @@ -59,4 +60,4 @@
"url": "https://github.com/rajendrant/fuzzaldrin-plus-fast/issues"
},
"homepage": "https://github.com/rajendrant/fuzzaldrin-plus-fast"
}
}

0 comments on commit 3e5a2a9

Please sign in to comment.