Skip to content

Commit 3e73e60

Browse files
Merge pull request #1 from groeneai/clickhouse-update-upstream
Update the clickhouse branch to apache/pulsar-client-cpp main
2 parents 7ec79df + ec3db0a commit 3e73e60

317 files changed

Lines changed: 22116 additions & 4135 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#!/usr/bin/env bash
2-
#
31
# Licensed to the Apache Software Foundation (ASF) under one
42
# or more contributor license agreements. See the NOTICE file
53
# distributed with this work for additional information
@@ -16,14 +14,19 @@
1614
# KIND, either express or implied. See the License for the
1715
# specific language governing permissions and limitations
1816
# under the License.
19-
#
20-
21-
set -e -x
22-
23-
ROOT_DIR=$(git rev-parse --show-toplevel)
2417

25-
for dir in apk deb rpm; do
26-
mkdir -p pkg/$dir/.build
27-
cp $ROOT_DIR/dependencies.yaml pkg/$dir/.build
28-
cp $ROOT_DIR/build-support/dep-version.py pkg/$dir/.build
29-
done
18+
---
19+
# TODO: add more checks
20+
# - bugprone
21+
# - cppcoreguidelines
22+
# - portability
23+
# - readability
24+
Checks: >
25+
-*,
26+
clang-analyzer-*,
27+
-clang-analyzer-security.insecureAPI.rand,
28+
performance-*,
29+
-performance-inefficient-string-concatenation
30+
WarningsAsErrors: '*'
31+
HeaderFilterRegex: '^(?!.*PulsarApi\.pb\.h$).*$'
32+
FormatStyle: none

‎.github/workflows/ci-build-binary-artifacts.yaml‎

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
package-linux:
3333
name: Build ${{matrix.pkg.name}} ${{matrix.cpu.platform}}
34-
runs-on: ubuntu-22.04
34+
runs-on: ${{matrix.cpu.runner}}
3535
timeout-minutes: 500
3636

3737
strategy:
@@ -42,32 +42,36 @@ jobs:
4242
- { name: 'Deb', type: 'deb', path: 'pkg/deb/BUILD/DEB' }
4343
- { name: 'Alpine', type: 'apk', path: 'pkg/apk/build' }
4444
cpu:
45-
- { arch: 'x86_64', platform: 'x86_64' }
46-
- { arch: 'aarch64', platform: 'arm64' }
45+
- { arch: 'x86_64', platform: 'x86_64', runner: 'ubuntu-22.04' }
46+
- { arch: 'aarch64', platform: 'arm64', runner: 'ubuntu-22.04-arm' }
4747

4848
steps:
4949
- name: checkout
50-
uses: actions/checkout@v3
50+
uses: actions/checkout@v7
5151

52-
- name: Set up QEMU
53-
uses: docker/setup-qemu-action@v2
52+
- name: Restore vcpkg binary cache
53+
uses: actions/cache@v6
54+
with:
55+
path: ~/.cache/vcpkg/archives
56+
key: vcpkg-linux-${{matrix.pkg.type}}-${{matrix.cpu.platform}}-${{hashFiles('vcpkg.json')}}
57+
restore-keys: |
58+
vcpkg-linux-${{matrix.pkg.type}}-${{matrix.cpu.platform}}-
5459
5560
- name: Package Pulsar source
5661
run: build-support/generate-source-archive.sh
5762

58-
- uses: docker/setup-buildx-action@v2
59-
- run: build-support/copy-deps-versionfile.sh
63+
- uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
6064

6165
- name: Build dependencies Docker image
62-
uses: docker/build-push-action@v3
66+
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
6367
with:
6468
context: ./pkg/${{matrix.pkg.type}}
6569
load: true
6670
tags: build:latest
6771
platforms: linux/${{matrix.cpu.platform}}
6872
build-args: PLATFORM=${{matrix.cpu.arch}}
69-
cache-from: type=gha
70-
cache-to: type=gha,mode=max
73+
cache-from: type=gha,scope=${{matrix.pkg.type}}-${{matrix.cpu.platform}}
74+
cache-to: type=gha,mode=max,scope=${{matrix.pkg.type}}-${{matrix.cpu.platform}}
7175

7276
- name: Build packages
7377
run: pkg/${{matrix.pkg.type}}/docker-build-${{matrix.pkg.type}}-${{matrix.cpu.platform}}.sh build:latest
@@ -76,7 +80,7 @@ jobs:
7680
run: zip -r ${{matrix.pkg.type}}-${{matrix.cpu.platform}}.zip ${{matrix.pkg.path}}
7781

7882
- name: Upload artifacts
79-
uses: actions/upload-artifact@v3
83+
uses: actions/upload-artifact@v7
8084
with:
8185
name: ${{matrix.pkg.type}}-${{matrix.cpu.platform}}
8286
path: ${{matrix.pkg.path}}
@@ -93,24 +97,24 @@ jobs:
9397
matrix:
9498
include:
9599
- name: 'Windows x64'
96-
os: windows-2019
100+
os: windows-2022
97101
triplet: x64-windows-static
98102
suffix: 'windows-win64'
99-
generator: 'Visual Studio 16 2019'
103+
generator: 'Visual Studio 17 2022'
100104
arch: '-A x64'
101105
- name: 'Windows x86'
102-
os: windows-2019
106+
os: windows-2022
103107
triplet: x86-windows-static
104108
suffix: 'windows-win32'
105-
generator: 'Visual Studio 16 2019'
109+
generator: 'Visual Studio 17 2022'
106110
arch: '-A Win32'
107111

108112
steps:
109113
- name: checkout
110-
uses: actions/checkout@v3
114+
uses: actions/checkout@v7
111115

112116
- name: Restore vcpkg and its artifacts.
113-
uses: actions/cache@v3
117+
uses: actions/cache@v6
114118
id: vcpkg-cache
115119
with:
116120
path: |
@@ -162,7 +166,7 @@ jobs:
162166
run: 7z a -tzip pulsar-client-cpp-${{ matrix.triplet }}.zip ${{ env.INSTALL_DIR }}/*
163167

164168
- name: Upload artifacts
165-
uses: actions/upload-artifact@v3
169+
uses: actions/upload-artifact@v7
166170
with:
167171
name: ${{ matrix.triplet }}
168172
path: ${{ env.INSTALL_DIR }}
@@ -190,14 +194,14 @@ jobs:
190194
run: 7z a -tzip pulsar-client-cpp-${{ matrix.triplet }}-Debug.zip ${{ env.INSTALL_DIR }}-Debug/*
191195

192196
- name: Upload artifacts (Debug)
193-
uses: actions/upload-artifact@v3
197+
uses: actions/upload-artifact@v7
194198
with:
195199
name: ${{ matrix.triplet }}-Debug
196200
path: ${{ env.INSTALL_DIR }}-Debug
197201

198202
package-macos:
199203
name: Build macOS libraries
200-
runs-on: macos-latest
204+
runs-on: macos-14
201205
timeout-minutes: 500
202206

203207
strategy:
@@ -207,7 +211,18 @@ jobs:
207211

208212
steps:
209213
- name: checkout
210-
uses: actions/checkout@v3
214+
uses: actions/checkout@v7
215+
with:
216+
fetch-depth: 0
217+
submodules: recursive
218+
219+
- name: Restore vcpkg binary cache
220+
uses: actions/cache@v6
221+
with:
222+
path: ~/Library/Caches/vcpkg/archives
223+
key: vcpkg-macos-${{ matrix.arch }}-${{ hashFiles('vcpkg.json') }}
224+
restore-keys: |
225+
vcpkg-macos-${{ matrix.arch }}-
211226
212227
- name: Install dependencies
213228
run: |
@@ -221,7 +236,7 @@ jobs:
221236
cp macos-${{ matrix.arch }}.zip ../../../
222237
223238
- name: Upload artifacts
224-
uses: actions/upload-artifact@v3
239+
uses: actions/upload-artifact@v7
225240
with:
226241
name: macos-${{ matrix.arch }}.zip
227242
path: macos-${{ matrix.arch }}.zip

0 commit comments

Comments
 (0)