From 3e5a2a9d92487824c5bca74869f35f88332a6aba Mon Sep 17 00:00:00 2001 From: rajendrant Date: Thu, 3 Sep 2020 10:43:57 -0700 Subject: [PATCH] Update prebuild config (#19) Allows prebuild for: * napi electron to be useful for atom * windows ia32 (built from windows64) --- .travis.yml | 8 +++++--- appveyor.yml | 1 + package.json | 7 ++++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index b091df59..52f78a3a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: @@ -32,3 +32,5 @@ deploy: tags: true node: node api_key: $GITHUB_TOKEN +after_deploy: +- npm run benchmark diff --git a/appveyor.yml b/appveyor.yml index 01ff5c3f..721a4d89 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 diff --git a/package.json b/package.json index 88aa1dfb..684a2efb 100644 --- a/package.json +++ b/package.json @@ -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", @@ -59,4 +60,4 @@ "url": "https://github.com/rajendrant/fuzzaldrin-plus-fast/issues" }, "homepage": "https://github.com/rajendrant/fuzzaldrin-plus-fast" -} \ No newline at end of file +}