Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump cpp client version to 3.4.1 #356

Merged
merged 3 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions .github/workflows/ci-build-release-napi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,10 @@ jobs:
echo "ARCH=${{ matrix.arch }}" >> $GITHUB_ENV
fi

- name: Build CPP dependencies lib
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
export ARCH=${{ env.ARCH }}
pkg/mac/build-cpp-deps-lib.sh

- name: Build CPP lib
if: steps.cache-pulsar.outputs.cache-hit != 'true'
run: |
export ARCH=${{ env.ARCH }}
pkg/mac/build-cpp-lib.sh

- name: Build Node binaries lib
run: |
export ARCH=${{ env.ARCH }}
pkg/mac/download-cpp-client.sh
npm install --ignore-scripts
npx node-pre-gyp configure --target_arch=${{ matrix.arch }}
npx node-pre-gyp build --target_arch=${{ matrix.arch }}
Expand Down
21 changes: 2 additions & 19 deletions .github/workflows/ci-pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,6 @@ jobs:
with:
python-version: ${{ matrix.python }}

- name: Cache Dependencies
id: cache-dependencies
uses: actions/cache@v3
with:
path: pkg/mac/build
key: ${{ runner.os }}-${{ matrix.arch }}-mac-${{ hashFiles('pkg/mac/build-cpp-deps-lib.sh') }}

- name: Add arch env vars
run: |
if [ "${{ matrix.arch }}" = "x64" ]; then
Expand All @@ -113,20 +106,10 @@ jobs:
echo "ARCH=${{ matrix.arch }}" >> $GITHUB_ENV
fi

- name: Build CPP dependencies lib
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
export ARCH=${{ env.ARCH }}
pkg/mac/build-cpp-deps-lib.sh

- name: Build CPP lib
if: steps.cache-pulsar.outputs.cache-hit != 'true'
run: |
export ARCH=${{ env.ARCH }}
pkg/mac/build-cpp-lib.sh

- name: Build Node binaries lib
run: |
export ARCH=${{ env.ARCH }}
pkg/mac/download-cpp-client.sh
npm install --ignore-scripts
npx node-pre-gyp configure --target_arch=${{ matrix.arch }}
npx node-pre-gyp build --target_arch=${{ matrix.arch }}
Expand Down
24 changes: 0 additions & 24 deletions build-support/dep-version.py

This file was deleted.

28 changes: 0 additions & 28 deletions dependencies.yaml

This file was deleted.

186 changes: 0 additions & 186 deletions pkg/mac/build-cpp-deps-lib.sh

This file was deleted.

49 changes: 0 additions & 49 deletions pkg/mac/build-cpp-lib.sh

This file was deleted.

21 changes: 10 additions & 11 deletions pkg/mac/common.sh → pkg/mac/download-cpp-client.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand All @@ -19,19 +20,17 @@

set -e -x

ROOT_DIR=`cd $(dirname $0) && cd ../../ && pwd`
source $ROOT_DIR/pulsar-client-cpp.txt

if [ -z "$ARCH" ]; then
export ARCH=$(uname -m)
fi

export MACOSX_DEPLOYMENT_TARGET=11.0

MAC_BUILD_DIR=`cd $(dirname $0); pwd`
ROOT_DIR=$(git rev-parse --show-toplevel)
source $ROOT_DIR/pulsar-client-cpp.txt

cd $MAC_BUILD_DIR
mkdir -p build
cd build
mkdir -p install
export PREFIX=`pwd`/install
rm -rf $ROOT_DIR/pkg/mac/build-pulsar
mkdir -p $ROOT_DIR/pkg/mac/build-pulsar/install
cd $ROOT_DIR/pkg/mac
curl -L -O ${CPP_CLIENT_BASE_URL}/macos-${ARCH}.zip
unzip -d $ROOT_DIR/pkg/mac/build-pulsar/install macos-${ARCH}.zip
rm -rf macos-${ARCH}.zip

4 changes: 2 additions & 2 deletions pulsar-client-cpp.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CPP_CLIENT_BASE_URL=https://archive.apache.org/dist/pulsar/pulsar-client-cpp-3.2.0
CPP_CLIENT_VERSION=3.2.0
CPP_CLIENT_BASE_URL=https://archive.apache.org/dist/pulsar/pulsar-client-cpp-3.4.1
CPP_CLIENT_VERSION=3.4.1
2 changes: 1 addition & 1 deletion tests/consumer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const Pulsar = require('../index');

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

await expect(consumer.close()).rejects.toThrow('Failed to close consumer: AlreadyClosed');
await expect(consumer.close()).resolves.toEqual(null);
});
});

Expand Down
Loading