forked from igraph/igraph
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (30 loc) · 1013 Bytes
/
codecov.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
name: Codecov.io
on: [push, pull_request]
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get install lcov libglpk-dev libarpack2-dev
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create build environment
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DIGRAPH_ENABLE_TLS=ON -DIGRAPH_ENABLE_CODE_COVERAGE=ON -DFLEX_KEEP_LINE_NUMBERS=ON
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --parallel
- name: Coverage
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --target coverage --parallel
- name: Codecov.io
uses: codecov/codecov-action@v3