-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.01 KB
/
ci.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
name: ci
on:
push:
branches:
- master
defaults:
run:
shell: bash
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: checkout
uses: actions/checkout@v3
with:
path: main
submodules: true
- name: install deps
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install -y cmake g++
- name: install cpp-coveralls
run: |
pip install --user cpp-coveralls
- name: build
working-directory: ./main
run: |
make WITH_COVERAGE=1
- name: test
working-directory: ./main
run: |
cd testpp && ./run.sh
- name: generate gcov results
working-directory: ./main
run: |
make gcov
- name: upload to coveralls
working-directory: ./main
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
coveralls -n --include threadmgr --include threadmgrpp