msgpackr-extract 1.0.12 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/.circleci/config.yml +19 -0
  2. package/.github/workflows/prebuild.yml +87 -0
  3. package/.travis.yml +30 -0
  4. package/binding.gyp +0 -20
  5. package/package.json +10 -2
  6. package/prebuilds/darwin-arm64/electron.abi98.node +0 -0
  7. package/prebuilds/darwin-arm64/node.abi102.node +0 -0
  8. package/prebuilds/darwin-arm64/node.abi83.node +0 -0
  9. package/prebuilds/darwin-arm64/node.abi93.node +0 -0
  10. package/prebuilds/darwin-x64/electron.abi98.node +0 -0
  11. package/prebuilds/darwin-x64/node.abi102.node +0 -0
  12. package/prebuilds/darwin-x64/node.abi72.node +0 -0
  13. package/prebuilds/darwin-x64/node.abi83.node +0 -0
  14. package/prebuilds/darwin-x64/node.abi88.node +0 -0
  15. package/prebuilds/darwin-x64/node.abi93.node +0 -0
  16. package/prebuilds/linux-arm64/electron.abi98.node +0 -0
  17. package/prebuilds/linux-arm64/node.abi102.node +0 -0
  18. package/prebuilds/linux-arm64/node.abi83.node +0 -0
  19. package/prebuilds/linux-arm64/node.abi93.node +0 -0
  20. package/prebuilds/linux-x64/electron.abi98.node +0 -0
  21. package/prebuilds/linux-x64/node.abi102.musl.node +0 -0
  22. package/prebuilds/linux-x64/node.abi102.node +0 -0
  23. package/prebuilds/linux-x64/node.abi72.musl.node +0 -0
  24. package/prebuilds/linux-x64/node.abi72.node +0 -0
  25. package/prebuilds/linux-x64/node.abi83.musl.node +0 -0
  26. package/prebuilds/linux-x64/node.abi83.node +0 -0
  27. package/prebuilds/linux-x64/node.abi88.node +0 -0
  28. package/prebuilds/linux-x64/node.abi93.musl.node +0 -0
  29. package/prebuilds/linux-x64/node.abi93.node +0 -0
  30. package/prebuilds/win32-x64/{electron.abi87.node → electron.abi98.node} +0 -0
  31. package/prebuilds/win32-x64/node.abi102.node +0 -0
  32. package/prebuilds/win32-x64/node.abi72.node +0 -0
  33. package/prebuilds/win32-x64/node.abi83.node +0 -0
  34. package/prebuilds/win32-x64/node.abi88.node +0 -0
  35. package/prebuilds/win32-x64/node.abi93.node +0 -0
  36. package/prebuilds/darwin-x64/electron.abi87.node +0 -0
@@ -0,0 +1,19 @@
1
+ name: Test and Prebuild
2
+ jobs:
3
+ build:
4
+ executor: my-ubuntu-exec
5
+ steps:
6
+ - uses: actions/checkout@v2
7
+ - name: Setup node
8
+ uses: actions/setup-node@v2
9
+ with:
10
+ node-version: 12
11
+ - run: npm install
12
+ - run: npm run prebuild
13
+ - run: zip -r prebuild-darwin.zip prebuilds
14
+ - run: hexdump "prebuilds/darwin-x64/node.abi93.node" | head -10
15
+ - name: Prebuild
16
+ uses: softprops/action-gh-release@v1
17
+ if: startsWith(github.ref, 'refs/tags/')
18
+ with:
19
+ files: prebuild-darwin.zip
@@ -0,0 +1,87 @@
1
+ name: Prebuild
2
+ on: [push]
3
+ jobs:
4
+ build-test-macos:
5
+ if: startsWith(github.ref, 'refs/tags/')
6
+ runs-on: macos-11
7
+ steps:
8
+ - uses: actions/checkout@v2
9
+ - name: Setup node
10
+ uses: actions/setup-node@v2
11
+ with:
12
+ node-version: 12
13
+ - run: npm install
14
+ - run: npm test
15
+ - run: npm run prebuild
16
+ if: startsWith(github.ref, 'refs/tags/')
17
+ - run: npm run prebuild-arm64
18
+ if: startsWith(github.ref, 'refs/tags/')
19
+ - run: tar --create --format ustar --verbose --file=prebuild-darwin.tar -C prebuilds .
20
+ if: startsWith(github.ref, 'refs/tags/')
21
+ - name: Prebuild
22
+ uses: softprops/action-gh-release@v1
23
+ if: startsWith(github.ref, 'refs/tags/')
24
+ with:
25
+ files: prebuild-darwin.tar
26
+ build-centos-7:
27
+ if: startsWith(github.ref, 'refs/tags/')
28
+ runs-on: ubuntu-18.04
29
+ container: quay.io/pypa/manylinux2014_x86_64
30
+ steps:
31
+ - run: ldd --version ldd
32
+ - uses: actions/checkout@v2
33
+ - name: Setup node
34
+ uses: actions/setup-node@v2
35
+ with:
36
+ node-version: 12
37
+ - run: npm install
38
+ - run: npm run prebuild
39
+ - run: npm test
40
+ - run: tar --create --verbose --file=prebuild-linux.tar -C prebuilds .
41
+ - name: Prebuild
42
+ if: startsWith(github.ref, 'refs/tags/')
43
+ uses: softprops/action-gh-release@v1
44
+ with:
45
+ files: prebuild-linux.tar
46
+ build-alpine:
47
+ if: startsWith(github.ref, 'refs/tags/')
48
+ runs-on: ubuntu-18.04
49
+ container: node:12-alpine
50
+ steps:
51
+ - run: apk add python3 py3-pip build-base
52
+ - uses: actions/checkout@v2
53
+ - run: npm install
54
+ - run: npm run prebuild-musl
55
+ - run: npm test
56
+ - run: tar --create --verbose --file=prebuild-alpine.tar -C prebuilds .
57
+ - name: Prebuild
58
+ if: startsWith(github.ref, 'refs/tags/')
59
+ uses: softprops/action-gh-release@v1
60
+ with:
61
+ files: prebuild-alpine.tar
62
+ build-linux-arm64:
63
+ if: startsWith(github.ref, 'refs/tags/')
64
+ runs-on: ubuntu-18.04
65
+ container: quay.io/pypa/manylinux_2_24_x86_64
66
+ steps:
67
+ - run: apt-get update
68
+ - run: apt-get install -y gcc-aarch64-linux-gnu
69
+ - run: apt-get install -y g++-aarch64-linux-gnu
70
+ - run: ldd --version ldd
71
+ - uses: actions/checkout@v2
72
+ - name: Setup node
73
+ uses: actions/setup-node@v2
74
+ with:
75
+ node-version: 12
76
+ - run: npm install
77
+ - run: npm run prebuild-arm64
78
+ if: startsWith(github.ref, 'refs/tags/')
79
+ env:
80
+ CC: aarch64-linux-gnu-gcc
81
+ CXX: aarch64-linux-gnu-g++
82
+ - run: tar --create --verbose --file=prebuild-linux-arm64.tar -C prebuilds .
83
+ - name: Prebuild
84
+ if: startsWith(github.ref, 'refs/tags/')
85
+ uses: softprops/action-gh-release@v1
86
+ with:
87
+ files: prebuild-linux-arm64.tar
package/.travis.yml ADDED
@@ -0,0 +1,30 @@
1
+ sudo: false
2
+ language: node_js
3
+ node_js:
4
+ - node
5
+ addons:
6
+ apt:
7
+ sources:
8
+ - ubuntu-toolchain-r-test
9
+ arch:
10
+ - amd64
11
+ - arm64
12
+ os:
13
+ - osx
14
+ - linux
15
+ osx_image: xcode12.5
16
+ before_deploy:
17
+ - ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-`uname -m`.tar"
18
+ - npm run prebuild
19
+ - tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds"
20
+ .
21
+ deploy:
22
+ provider: releases
23
+ draft: false
24
+ prerelease: true
25
+ file: "$ARCHIVE_NAME"
26
+ skip_cleanup: true
27
+ on:
28
+ tags: true
29
+ node: node
30
+ api_key: '$GITHUB_API_KEY'
package/binding.gyp CHANGED
@@ -1,8 +1,6 @@
1
1
  {
2
2
  "variables": {
3
3
  "os_linux_compiler%": "gcc",
4
- "target%": "10.0",
5
- "runtime%": "node",
6
4
  "build_v8_with_gn": "false"
7
5
  },
8
6
  "targets": [
@@ -24,7 +22,6 @@
24
22
  "-fPIC",
25
23
  "-fvisibility=hidden",
26
24
  "-fvisibility-inlines-hidden",
27
- "-std=c++11"
28
25
  ],
29
26
  "conditions": [
30
27
  ["gcc_version>=7", {
@@ -32,15 +29,6 @@
32
29
  "-Wimplicit-fallthrough=2",
33
30
  ],
34
31
  }],
35
- ["(node_module_version >= 93) | ((target > '13.0') & (runtime == 'electron'))", {
36
- "cflags_cc": [
37
- "-std=c++14"
38
- ]
39
- }, {
40
- "cflags_cc": [
41
- "-std=c++11"
42
- ],
43
- }],
44
32
  ],
45
33
  "ldflags": [
46
34
  "-fPIC",
@@ -52,14 +40,6 @@
52
40
  "-O3"
53
41
  ],
54
42
  }],
55
- ["OS=='mac'", {
56
- "xcode_settings": {
57
- "OTHER_CPLUSPLUSFLAGS" : ["-std=c++14"],
58
- "MACOSX_DEPLOYMENT_TARGET": "10.7",
59
- "OTHER_LDFLAGS": ["-std=c++11"],
60
- "CLANG_CXX_LIBRARY": "libc++"
61
- }
62
- }],
63
43
  ],
64
44
  }
65
45
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "msgpackr-extract",
3
3
  "author": "Kris Zyp",
4
- "version": "1.0.12",
4
+ "version": "1.0.16",
5
5
  "description": "Node addon for string extraction for msgpackr",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -11,12 +11,20 @@
11
11
  "scripts": {
12
12
  "install": "node-gyp-build",
13
13
  "recompile": "node-gyp build",
14
- "test": "./node_modules/.bin/mocha tests/test*.js -u tdd"
14
+ "before-publish": "prebuildify-ci download && prebuildify --target 17.2.0 && prebuildify --target 16.13.0 && prebuildify --target 15.5.0 && prebuildify --target 14.17.6 && prebuildify --target 12.22.7 && prebuildify --target electron@15.2.0",
15
+ "prebuild": "prebuildify --target 17.2.0 && prebuildify --target 16.13.0 && prebuildify --target 15.5.0 && prebuildify --target 14.17.6 && prebuildify --target 12.22.7 && prebuildify --target electron@15.2.0",
16
+ "prebuild-musl": "prebuildify --target 17.2.0 --libc musl --tag-libc && prebuildify --target 16.13.0 --libc musl --tag-libc && prebuildify --target 14.17.6 --libc musl --tag-libc && prebuildify --target 12.22.7 --libc musl --tag-libc",
17
+ "prebuild-arm64": "prebuildify --arch=arm64 --target 17.2.0 --libc musl && prebuildify --arch=arm64 --target 16.13.0 && prebuildify --arch=arm64 --target 14.17.6 && prebuildify --arch=arm64 --target electron@15.2.0",
18
+ "test": ""
15
19
  },
16
20
  "main": "./index.js",
17
21
  "gypfile": true,
18
22
  "dependencies": {
19
23
  "nan": "^2.14.2",
20
24
  "node-gyp-build": "^4.2.3"
25
+ },
26
+ "devDependencies": {
27
+ "prebuildify": "^5.0.0",
28
+ "prebuildify-ci": "^1.0.5"
21
29
  }
22
30
  }
index 4d4e723..828c362 100644
Binary file
Binary file
Binary file
Binary file
Binary file