You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by xy...@apache.org on 2022/10/26 09:48:45 UTC
[pulsar-client-cpp] branch main updated: [ci] Add macOS build workflow (#68)
This is an automated email from the ASF dual-hosted git repository.
xyz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-client-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new 2248adc [ci] Add macOS build workflow (#68)
2248adc is described below
commit 2248adcfdf23682221e36bf784287ce325589f2f
Author: Kai Wang <kw...@apache.org>
AuthorDate: Wed Oct 26 17:48:39 2022 +0800
[ci] Add macOS build workflow (#68)
---
.github/workflows/ci-pr-validation.yaml | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/ci-pr-validation.yaml b/.github/workflows/ci-pr-validation.yaml
index 9f98e1e..0fd7d89 100644
--- a/.github/workflows/ci-pr-validation.yaml
+++ b/.github/workflows/ci-pr-validation.yaml
@@ -219,13 +219,36 @@ jobs:
- name: Build packages
run: pkg/${{matrix.pkg.type}}/docker-build-${{matrix.pkg.type}}-${{matrix.cpu.platform}}.sh build:latest
+ cpp-build-macos:
+ timeout-minutes: 120
+ name: Build CPP Client on macOS
+ runs-on: macos-12
+ needs: unit-tests
+ steps:
+ - name: checkout
+ uses: actions/checkout@v3
+
+ - name: Install dependencies
+ run: brew install openssl protobuf boost zstd snappy
+
+ - name: Configure (default)
+ shell: bash
+ run: |
+ cmake \
+ -B ./build-macos \
+ -DBUILD_TESTS=OFF \
+ -S .
+
+ - name: Compile
+ shell: bash
+ run: |
+ cmake --build ./build-macos --parallel --config Release
# Job that will be required to complete and depends on all the other jobs
check-completion:
name: Check Completion
runs-on: ubuntu-latest
- needs: [unit-tests, cpp-build-windows, package]
+ needs: [unit-tests, cpp-build-windows, package, cpp-build-macos]
steps:
- run: true
-