-
Notifications
You must be signed in to change notification settings - Fork 1.1k
56 lines (56 loc) · 1.58 KB
/
ci-cmake.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI (CMake)
on:
push:
branches: [main]
permissions:
contents: read
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build_shared_libs: [OFF, ON]
steps:
- uses: actions/checkout@v4.1.7
- name: Install Abseil, GoogleTest and Benchmark
run: |
vcpkg update
vcpkg install abseil gtest benchmark
shell: bash
- run: |
.github/cmake.sh -D BUILD_SHARED_LIBS=${{ matrix.build_shared_libs }} \
-D CMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake
shell: bash
build-macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
build_shared_libs: [OFF, ON]
steps:
- uses: actions/checkout@v4.1.7
- name: Install Abseil, GoogleTest and Benchmark
run: |
brew update
brew install abseil googletest google-benchmark
shell: bash
- run: .github/cmake.sh -D BUILD_SHARED_LIBS=${{ matrix.build_shared_libs }}
shell: bash
build-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
build_shared_libs: [OFF, ON]
steps:
- uses: actions/checkout@v4.1.7
- name: Install Abseil, GoogleTest and Benchmark
run: |
vcpkg update
vcpkg install abseil gtest benchmark
shell: bash
- run: |
.github/cmake.sh -D BUILD_SHARED_LIBS=${{ matrix.build_shared_libs }} \
-D CMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
shell: bash