-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (41 loc) · 1.09 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
name: "Coverage"
on:
push:
branches: [ master, ]
jobs:
build_on_linux_coverage:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: prepare
run: |
sudo apt update
sudo apt install ninja-build lcov language-pack-ja
- name: configure
run: |
mkdir build
cd build
cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE=coverage \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DUSE_EXTRA_TEST=on
- name: build
run: |
cd build
ninja
sudo ninja install
./arsh ../scripts/copy_mod4extra.ds
- name: test
run: |
cd build
ctest --output-on-failure
- name: generate lcov
run: |
./scripts/report_cov.ds build
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
format: lcov
path-to-lcov: ./build/coverage_report-cleaned.info