-
-
Notifications
You must be signed in to change notification settings - Fork 494
64 lines (49 loc) · 1.57 KB
/
coverage.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
52
53
54
55
56
57
58
59
60
61
62
63
64
name: coverage
on: [push]
jobs:
linux-coverage:
name: linux
runs-on: [ubuntu-latest]
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install mbedTLS
run: sudo apt-get install libmbedtls-dev
- name: Install ninja
run: sudo apt-get install ninja-build
- name: Configure
run: mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DNNG_ENABLE_COVERAGE=ON -DNNG_ENABLE_TLS=ON ..
- name: build
run: cd build && ninja
- name: Test
run: cd build && ctest --output-on-failure
- name: Upload report
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
codecov_yml_path: ./.codecov.yml
darwin-coverage:
name: darwin
runs-on: [macos-latest]
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Install mbedTLS
run: brew install mbedtls
- name: Install ninja
run: brew install ninja
- name: Install lcov
run: brew install lcov
- name: Configure
run: mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DNNG_ENABLE_COVERAGE=ON -DNNG_ENABLE_TLS=ON ..
- name: build
run: cd build && ninja
- name: Test
run: cd build && ctest --output-on-failure
- name: Preprocess
run: cd build && lcov -c -d . -o lcov.info
- name: Upload report
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
yml: ./.codecov.yml