Skip to content

Commit

Permalink
Bump cpp client version to 3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
shibd committed Nov 27, 2023
1 parent 801e5ce commit b456009
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 332 deletions.
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.

25 changes: 14 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,21 @@

set -e -x

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

if [ $USER != "root" ]; then
SUDO="sudo"
fi

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
Loading

0 comments on commit b456009

Please sign in to comment.