Skip to content

Commit 9614d07

Browse files
also test library building with CMake
1 parent feee1a3 commit 9614d07

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,27 @@ on:
1111
workflow_dispatch:
1212

1313
jobs:
14+
cmake:
15+
strategy:
16+
matrix:
17+
runs-on:
18+
- ubuntu-latest
19+
# macos-13 is an intel runner, macos-14 is apple silicon
20+
- macos-13
21+
- macos-latest
22+
fail-fast: false
23+
runs-on: ${{ matrix.runs-on }}
24+
steps:
25+
- uses: zacharyburnett/setup-abseil-cpp@41fabae9b8c6a76c1b9612c8611c50b498bbeda1 # 1.0.3
26+
with:
27+
cmake-build-args: "-DCMAKE_CXX_STANDARD=17 -DABSL_PROPAGATE_CXX_STD=ON -DABSL_ENABLE_INSTALL=ON -DBUILD_TESTING=off -DCMAKE_POSITION_INDEPENDENT_CODE=ON"
28+
abseil-version: "20240722.0"
29+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30+
- run: mkdir build
31+
- run: cmake -DCMAKE_CXX_STANDARD=17 -DCMAKE_PREFIX_PATH=/usr/local/ -DBUILD_TESTS=OFF ..
32+
working-directory: build/
33+
- run: sudo cmake --build . --parallel=8 --target=install
34+
working-directory: build/
1435
python-wheels:
1536
strategy:
1637
matrix:

0 commit comments

Comments
 (0)