-
Notifications
You must be signed in to change notification settings - Fork 239
48 lines (40 loc) · 1.39 KB
/
continuous-integration.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
# This file based on https://gist.github.com/mwouts/9842452d020c08faf9e84a3bba38a66f
# See: https://help.github.com/en/actions/reference/software-installed-on-github-hosted-runners
# 2020-06-22 - slg - customized
# 2020-06-27 - slg - expanded to G++ for MacOS
# 2020-07-03 - slg - ported to be13_api; removed python (be13_api doesn't use python)
name: BE13_API CI (c++14)
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-20.04']
steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install C++ dependencies on MacOS
if: startsWith(matrix.os, 'macOS')
run: |
bash etc/install_autotools.sh
- name: Install C++ dependencies on Ubuntu
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt install libtool autoconf automake g++ libboost-all-dev libssl-dev libpcap-dev libcairo2-dev
automake --help
- name: c/c++ test
run: |
bash bootstrap.sh
./configure && make && make check
- uses: ammaraskar/[email protected]
name: GCC Problem Matcher
- name: codecov report
if: startsWith(matrix.os, 'ubuntu')
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
bash .make-codecov