Do not create per-Node.js builds; decrease N-API version
This commit is contained in:
parent
715dffb8de
commit
17647b5843
|
@ -12,9 +12,7 @@ jobs:
|
|||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
# Use windows-2016 as windows-2019 has LNK1181 error when building Neon module.
|
||||
os: [macos-latest, ubuntu-latest, windows-2016]
|
||||
node: [8, 9, 10, 11, 12, 13, 14]
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
include:
|
||||
- os: macos-latest
|
||||
ARCH: macos-x86_64
|
||||
|
@ -77,7 +75,7 @@ jobs:
|
|||
- name: Upload to B2
|
||||
shell: bash
|
||||
run: |
|
||||
binary_name="$(node -e 'console.log([process.platform, process.arch, process.versions.modules].join("__"))')"
|
||||
binary_name="$(node -e 'console.log([process.platform, process.arch].join("__"))')"
|
||||
b2 authorize-account ${{ secrets.CICD_CLI_B2_KEY_ID }} ${{ secrets.CICD_CLI_B2_APPLICATION_KEY }}
|
||||
b2 upload-file ${{ secrets.CICD_CLI_B2_BUCKET_NAME }} ./nodejs/index.node.gz "minify-html/bin/nodejs/${{ steps.version.outputs.VERSION }}/$binary_name.node.gz"
|
||||
package:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#define NAPI_VERSION 4
|
||||
#define NAPI_VERSION 1
|
||||
#include <node_api.h>
|
||||
|
||||
typedef struct Cfg Cfg;
|
||||
|
|
|
@ -6,7 +6,7 @@ const pkg = require('./package.json');
|
|||
|
||||
const MAX_DOWNLOAD_ATTEMPTS = 4;
|
||||
|
||||
const binaryName = [process.platform, process.arch, process.versions.modules].join('__');
|
||||
const binaryName = [process.platform, process.arch].join('__');
|
||||
const binaryPath = path.join(__dirname, 'index.node');
|
||||
|
||||
const wait = ms => new Promise(resolve => setTimeout(resolve, ms));
|
||||
|
|
Loading…
Reference in New Issue