pulsar-client 1.11.0-rc.4 → 1.11.1-rc.2
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.
|
@@ -30,7 +30,7 @@ concurrency:
|
|
|
30
30
|
jobs:
|
|
31
31
|
macos-napi:
|
|
32
32
|
name: Build NAPI macos - Node ${{matrix.nodejs}} - ${{matrix.arch}}
|
|
33
|
-
runs-on:
|
|
33
|
+
runs-on: ${{ matrix.os }}
|
|
34
34
|
timeout-minutes: 3000
|
|
35
35
|
|
|
36
36
|
strategy:
|
|
@@ -43,6 +43,12 @@ jobs:
|
|
|
43
43
|
- 18
|
|
44
44
|
python:
|
|
45
45
|
- "3.10"
|
|
46
|
+
include:
|
|
47
|
+
- arch: x64
|
|
48
|
+
os: macos-13
|
|
49
|
+
- arch: arm64
|
|
50
|
+
# macos-14 is used for arm64
|
|
51
|
+
os: macos-14
|
|
46
52
|
steps:
|
|
47
53
|
- uses: actions/checkout@v3
|
|
48
54
|
- name: Use Node.js ${{ matrix.nodejs }}
|
|
@@ -56,31 +62,19 @@ jobs:
|
|
|
56
62
|
with:
|
|
57
63
|
python-version: ${{ matrix.python }}
|
|
58
64
|
|
|
59
|
-
- name:
|
|
60
|
-
id: cache-dependencies
|
|
61
|
-
uses: actions/cache@v3
|
|
62
|
-
with:
|
|
63
|
-
path: pkg/mac/build
|
|
64
|
-
key: ${{ runner.os }}-${{ matrix.arch }}-mac-${{ hashFiles('pkg/mac/build-cpp-deps-lib.sh') }}
|
|
65
|
-
|
|
66
|
-
- name: Add arch env vars
|
|
65
|
+
- name: Build Node binaries lib
|
|
67
66
|
run: |
|
|
68
67
|
if [ "${{ matrix.arch }}" = "x64" ]; then
|
|
69
|
-
|
|
68
|
+
export ARCH=x86_64
|
|
70
69
|
else
|
|
71
|
-
|
|
70
|
+
export ARCH=${{ matrix.arch }}
|
|
72
71
|
fi
|
|
73
|
-
|
|
74
|
-
- name: Build Node binaries lib
|
|
75
|
-
run: |
|
|
76
|
-
export ARCH=${{ env.ARCH }}
|
|
77
72
|
pkg/mac/download-cpp-client.sh
|
|
78
73
|
npm install --ignore-scripts
|
|
79
74
|
npx node-pre-gyp configure --target_arch=${{ matrix.arch }}
|
|
80
75
|
npx node-pre-gyp build --target_arch=${{ matrix.arch }}
|
|
81
76
|
|
|
82
77
|
- name: Test loading Node binaries lib
|
|
83
|
-
if: matrix.arch == 'x64'
|
|
84
78
|
run: |
|
|
85
79
|
node pkg/load_test.js
|
|
86
80
|
|
|
@@ -72,7 +72,7 @@ jobs:
|
|
|
72
72
|
|
|
73
73
|
macos-napi:
|
|
74
74
|
name: Build NAPI macos - Node ${{matrix.nodejs}} - ${{matrix.arch}}
|
|
75
|
-
runs-on:
|
|
75
|
+
runs-on: ${{ matrix.os }}
|
|
76
76
|
timeout-minutes: 3000
|
|
77
77
|
|
|
78
78
|
strategy:
|
|
@@ -85,6 +85,12 @@ jobs:
|
|
|
85
85
|
- 18
|
|
86
86
|
python:
|
|
87
87
|
- "3.10"
|
|
88
|
+
include:
|
|
89
|
+
- arch: x64
|
|
90
|
+
os: macos-13
|
|
91
|
+
- arch: arm64
|
|
92
|
+
# macos-14 is used for arm64
|
|
93
|
+
os: macos-14
|
|
88
94
|
steps:
|
|
89
95
|
- uses: actions/checkout@v3
|
|
90
96
|
- name: Use Node.js ${{ matrix.nodejs }}
|
|
@@ -98,24 +104,19 @@ jobs:
|
|
|
98
104
|
with:
|
|
99
105
|
python-version: ${{ matrix.python }}
|
|
100
106
|
|
|
101
|
-
- name:
|
|
107
|
+
- name: Build Node binaries lib
|
|
102
108
|
run: |
|
|
103
109
|
if [ "${{ matrix.arch }}" = "x64" ]; then
|
|
104
|
-
|
|
110
|
+
export ARCH=x86_64
|
|
105
111
|
else
|
|
106
|
-
|
|
112
|
+
export ARCH=${{ matrix.arch }}
|
|
107
113
|
fi
|
|
108
|
-
|
|
109
|
-
- name: Build Node binaries lib
|
|
110
|
-
run: |
|
|
111
|
-
export ARCH=${{ env.ARCH }}
|
|
112
114
|
pkg/mac/download-cpp-client.sh
|
|
113
115
|
npm install --ignore-scripts
|
|
114
116
|
npx node-pre-gyp configure --target_arch=${{ matrix.arch }}
|
|
115
117
|
npx node-pre-gyp build --target_arch=${{ matrix.arch }}
|
|
116
118
|
|
|
117
119
|
- name: Test loading Node binaries lib
|
|
118
|
-
if: matrix.arch == 'x64'
|
|
119
120
|
run: |
|
|
120
121
|
node pkg/load_test.js
|
|
121
122
|
|
package/package.json
CHANGED
|
@@ -17,19 +17,15 @@
|
|
|
17
17
|
# under the License.
|
|
18
18
|
#
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
ARG NODE_VERSION
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
RUN yum install -y gcc gcc-c++ make python3
|
|
22
|
+
FROM node:${NODE_VERSION}-buster
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
mv node-v16.19.0-linux-$SUFFIX node-v16.19.0
|
|
32
|
-
|
|
33
|
-
ENV PATH="/app/node-v16.19.0/bin:$PATH"
|
|
24
|
+
RUN apt-get update -y && \
|
|
25
|
+
apt-get install -y \
|
|
26
|
+
curl \
|
|
27
|
+
g++ \
|
|
28
|
+
make \
|
|
29
|
+
python3
|
|
34
30
|
|
|
35
31
|
CMD ["sh"]
|