-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (41 loc) · 1.15 KB
/
c-cpp.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
name: C/C++ CI
on:
push:
branches: [ v2c ]
pull_request:
branches: [ v2c ]
jobs:
build:
name: Test build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install deps
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install libboost-all-dev libexpat1-dev libjsoncpp-dev libspdlog-dev libcapnp-dev capnproto nlohmann-json3-dev
- name: Install deps
if: matrix.os == 'macOS-latest'
run: |
brew update
# Temporary Workaround for conflict with multiple python in brew
brew install --overwrite python@3.12 python@3.11 python@3.10
brew install autoconf automake libtool pkg-config
brew install boost
brew install capnp
brew install spdlog
brew install nlohmann-json
- name: Gen configure
run: autoreconf -i
- name: configure
run: ./configure
- name: make
run: make
- name: make check
run: make check