-
Notifications
You must be signed in to change notification settings - Fork 24
40 lines (35 loc) · 1.11 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
name: C/C++ CI
on:
push:
branches: 'master'
pull_request:
branches: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install git gcc-multilib gcc g++ autoconf pkg-config make automake libtool libxml2-dev libxml2 python3 python3-dev python3-pip python3-setuptools openssl libssl-dev
- name: autoreconf
run: autoreconf -i
- name: configure
run: ./configure -q --enable-debug CXXFLAGS=-coverage CFLAGS=-coverage LDFLAGS=-lgcov --prefix=/usr
- name: make
run: make -j10
- name: install
run: sudo make install
- name: install pytrap
run: (cd pytrap && make coverage; sudo python3 setup.py install;)
- name: make check
run: make check
- name: make distcheck
run: make distcheck
- uses: codecov/codecov-action@v1
with:
flags: tests # optional
name: nemea-framework # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)