-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.2 KB
/
ccpp.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
name: C++ Interface
on: [push]
jobs:
build-ubuntu:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
compiler: [g++-9, g++-10, clang++-10, clang++-11, clang++-12 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- 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:
runs-on: macos-latest
strategy:
matrix:
xcode: [default]
steps:
- uses: actions/checkout@v2
- name: Install Protobuf
run: |
brew install protobuf openssl@1.1
- 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/openssl@1.1/
- name: Build
run: make
- name: Run CTest
run: ctest .