Skip to content

Commit 2248adc

Browse files
[ci] Add macOS build workflow (apache#68)
1 parent c671ac0 commit 2248adc

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

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

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,36 @@ jobs:
219219
- name: Build packages
220220
run: pkg/${{matrix.pkg.type}}/docker-build-${{matrix.pkg.type}}-${{matrix.cpu.platform}}.sh build:latest
221221

222+
cpp-build-macos:
223+
timeout-minutes: 120
224+
name: Build CPP Client on macOS
225+
runs-on: macos-12
226+
needs: unit-tests
227+
steps:
228+
- name: checkout
229+
uses: actions/checkout@v3
230+
231+
- name: Install dependencies
232+
run: brew install openssl protobuf boost zstd snappy
233+
234+
- name: Configure (default)
235+
shell: bash
236+
run: |
237+
cmake \
238+
-B ./build-macos \
239+
-DBUILD_TESTS=OFF \
240+
-S .
241+
242+
- name: Compile
243+
shell: bash
244+
run: |
245+
cmake --build ./build-macos --parallel --config Release
222246
223247
# Job that will be required to complete and depends on all the other jobs
224248
check-completion:
225249
name: Check Completion
226250
runs-on: ubuntu-latest
227-
needs: [unit-tests, cpp-build-windows, package]
251+
needs: [unit-tests, cpp-build-windows, package, cpp-build-macos]
228252

229253
steps:
230254
- run: true
231-

0 commit comments

Comments
 (0)