-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (53 loc) · 1.37 KB
/
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
57
58
59
60
61
name: C++ Build
on:
push:
branches:
- "**"
tags:
- "v*.*.*"
pull_request:
workflow_dispatch:
jobs:
build-ubuntu:
strategy:
fail-fast: false
matrix:
compiler:
[g++-12, g++-13, g++-14, clang++-16, clang++-17, clang++-18]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Protobuf
run: |
sudo apt update
sudo apt install libprotoc-dev protobuf-compiler
- name: Run CMake configure
env:
CXX: ${{ matrix.compiler }}
run: cmake .
- uses: ammaraskar/gcc-problem-matcher@master
if: ${{ startsWith( matrix.compiler, 'g++') }}
- name: Build
run: make
- name: Run CTest
run: ctest .
build-macos:
strategy:
matrix:
os: [macos-latest, macos-13]
xcode: [default]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Protobuf
run: |
brew install protobuf [email protected]
- name: Select XCode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
if: matrix.xcode != 'default'
- name: Run CMake configure
run: cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/[email protected]/
- name: Build
run: make
- name: Run CTest
run: ctest .