Skip to content

Commit 705c1fe

Browse files
authored
Bump cpp client version to 3.4.1 (#356)
* Bump cpp client version to 3.4.1 * revert change MACOSX_DEPLOYMENT_TARGET * Remove sudo on download script.
1 parent 801e5ce commit 705c1fe

File tree

9 files changed

+17
-332
lines changed

9 files changed

+17
-332
lines changed

.github/workflows/ci-build-release-napi.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,10 @@ jobs:
7171
echo "ARCH=${{ matrix.arch }}" >> $GITHUB_ENV
7272
fi
7373
74-
- name: Build CPP dependencies lib
75-
if: steps.cache-dependencies.outputs.cache-hit != 'true'
76-
run: |
77-
export ARCH=${{ env.ARCH }}
78-
pkg/mac/build-cpp-deps-lib.sh
79-
80-
- name: Build CPP lib
81-
if: steps.cache-pulsar.outputs.cache-hit != 'true'
82-
run: |
83-
export ARCH=${{ env.ARCH }}
84-
pkg/mac/build-cpp-lib.sh
85-
8674
- name: Build Node binaries lib
8775
run: |
76+
export ARCH=${{ env.ARCH }}
77+
pkg/mac/download-cpp-client.sh
8878
npm install --ignore-scripts
8979
npx node-pre-gyp configure --target_arch=${{ matrix.arch }}
9080
npx node-pre-gyp build --target_arch=${{ matrix.arch }}

.github/workflows/ci-pr-validation.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,6 @@ jobs:
9898
with:
9999
python-version: ${{ matrix.python }}
100100

101-
- name: Cache Dependencies
102-
id: cache-dependencies
103-
uses: actions/cache@v3
104-
with:
105-
path: pkg/mac/build
106-
key: ${{ runner.os }}-${{ matrix.arch }}-mac-${{ hashFiles('pkg/mac/build-cpp-deps-lib.sh') }}
107-
108101
- name: Add arch env vars
109102
run: |
110103
if [ "${{ matrix.arch }}" = "x64" ]; then
@@ -113,20 +106,10 @@ jobs:
113106
echo "ARCH=${{ matrix.arch }}" >> $GITHUB_ENV
114107
fi
115108
116-
- name: Build CPP dependencies lib
117-
if: steps.cache-dependencies.outputs.cache-hit != 'true'
118-
run: |
119-
export ARCH=${{ env.ARCH }}
120-
pkg/mac/build-cpp-deps-lib.sh
121-
122-
- name: Build CPP lib
123-
if: steps.cache-pulsar.outputs.cache-hit != 'true'
124-
run: |
125-
export ARCH=${{ env.ARCH }}
126-
pkg/mac/build-cpp-lib.sh
127-
128109
- name: Build Node binaries lib
129110
run: |
111+
export ARCH=${{ env.ARCH }}
112+
pkg/mac/download-cpp-client.sh
130113
npm install --ignore-scripts
131114
npx node-pre-gyp configure --target_arch=${{ matrix.arch }}
132115
npx node-pre-gyp build --target_arch=${{ matrix.arch }}

build-support/dep-version.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

dependencies.yaml

Lines changed: 0 additions & 28 deletions
This file was deleted.

pkg/mac/build-cpp-deps-lib.sh

Lines changed: 0 additions & 186 deletions
This file was deleted.

pkg/mac/build-cpp-lib.sh

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env bash
12
#
23
# Licensed to the Apache Software Foundation (ASF) under one
34
# or more contributor license agreements. See the NOTICE file
@@ -19,19 +20,17 @@
1920

2021
set -e -x
2122

23+
ROOT_DIR=`cd $(dirname $0) && cd ../../ && pwd`
24+
source $ROOT_DIR/pulsar-client-cpp.txt
25+
2226
if [ -z "$ARCH" ]; then
2327
export ARCH=$(uname -m)
2428
fi
2529

26-
export MACOSX_DEPLOYMENT_TARGET=11.0
27-
28-
MAC_BUILD_DIR=`cd $(dirname $0); pwd`
29-
ROOT_DIR=$(git rev-parse --show-toplevel)
30-
source $ROOT_DIR/pulsar-client-cpp.txt
31-
32-
cd $MAC_BUILD_DIR
33-
mkdir -p build
34-
cd build
35-
mkdir -p install
36-
export PREFIX=`pwd`/install
30+
rm -rf $ROOT_DIR/pkg/mac/build-pulsar
31+
mkdir -p $ROOT_DIR/pkg/mac/build-pulsar/install
32+
cd $ROOT_DIR/pkg/mac
33+
curl -L -O ${CPP_CLIENT_BASE_URL}/macos-${ARCH}.zip
34+
unzip -d $ROOT_DIR/pkg/mac/build-pulsar/install macos-${ARCH}.zip
35+
rm -rf macos-${ARCH}.zip
3736

pulsar-client-cpp.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
CPP_CLIENT_BASE_URL=https://archive.apache.org/dist/pulsar/pulsar-client-cpp-3.2.0
2-
CPP_CLIENT_VERSION=3.2.0
1+
CPP_CLIENT_BASE_URL=https://archive.apache.org/dist/pulsar/pulsar-client-cpp-3.4.1
2+
CPP_CLIENT_VERSION=3.4.1

tests/consumer.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const Pulsar = require('../index');
137137

138138
await expect(consumer.close()).resolves.toEqual(null);
139139

140-
await expect(consumer.close()).rejects.toThrow('Failed to close consumer: AlreadyClosed');
140+
await expect(consumer.close()).resolves.toEqual(null);
141141
});
142142
});
143143

0 commit comments

Comments
 (0)