-
Notifications
You must be signed in to change notification settings - Fork 70
32 lines (30 loc) · 855 Bytes
/
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
name: C/C++ CI
on: [push]
jobs:
build:
name: ${{ matrix.os }} | ${{ matrix.compiler }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
compiler: [clang, gcc]
steps:
- uses: actions/checkout@v1
- name: make test (${{ matrix.compiler }})
run: make test CC=${{ matrix.compiler }}
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install lcov
run: sudo apt-get install -y lcov
- name: Build & test
run: make CC=gcc
- name: Collect coverage
run: make coverage
- name: Push to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./build/test/coverage.info