-
Notifications
You must be signed in to change notification settings - Fork 109
101 lines (100 loc) · 3.04 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# DO NOT EDIT - GENERATED FROM .github/workflows/coverage.ys
name: coverage
defaults:
run:
shell: bash -e -x {0}
'on':
workflow_dispatch: null
push:
branches:
- master
pull_request:
branches:
- master
env:
PROJ_PFX_TARGET: ryml-
PROJ_PFX_CMAKE: RYML_
CMAKE_FLAGS: -DRYML_TEST_SUITE=ON
NUM_JOBS_BUILD: null
jobs:
coverage:
if: always()
continue-on-error: false
name: coverage/c++${{matrix.std}}${{matrix.namesfx}}
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
include:
- std: 11
cxx: g++-9
bt: Coverage
os: ubuntu-20.04
- std: 17
cxx: g++-9
bt: Coverage
os: ubuntu-20.04
- std: 11
cxx: g++-9
bt: Coverage
os: ubuntu-20.04
cmk: -DRYML_DBG=ON
namesfx: /dbg
- std: 17
cxx: g++-9
bt: Coverage
os: ubuntu-20.04
cmk: -DRYML_DBG=ON
namesfx: /dbg
env:
STD: ${{matrix.std}}
CXX_: ${{matrix.cxx}}
BT: ${{matrix.bt}}
BITLINKS: ${{matrix.bitlinks}}
VG: ${{matrix.vg}}
SAN: ${{matrix.san}}
LINT: ${{matrix.lint}}
OS: ${{matrix.os}}
CMAKE_FLAGS: ${{matrix.cmk}}
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
COVERALLS_REPO_TOKEN: ${{secrets.COVERALLS_REPO_TOKEN}}
steps:
- name: checkout (action)
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: install requirements
run: source .github/reqs.sh && c4_install_test_requirements $OS
- name: show info
run: source .github/setenv.sh && c4_show_info
- name: static64-configure-------------------------------------------------
run: source .github/setenv.sh && c4_cfg_test static64
- name: static64-build
run: source .github/setenv.sh && c4_build_test static64
- name: static64-run
run: source .github/setenv.sh && c4_build_target static64 ryml-coverage
- name: static64-coverage-artifacts
uses: actions/upload-artifact@v4
with:
name: coverage-static64-${{strategy.job-index}}
path: |
build/static64/lcov
build/static64/coverage3-final_filtered.lcov
- name: static64-submit-codecov
run: source .github/setenv.sh && c4_submit_coverage static64 codecov
- name: static32-configure-------------------------------------------------
run: source .github/setenv.sh && c4_cfg_test static32
- name: static32-build
run: source .github/setenv.sh && c4_build_test static32
- name: static32-run
run: source .github/setenv.sh && c4_build_target static32 ryml-coverage
- name: static32-coverage-artifacts
uses: actions/upload-artifact@v4
with:
name: coverage-static32-cxx${{matrix.std}}-${{strategy.job-index}}
path: |
build/static32/lcov
build/static32/coverage3-final_filtered.lcov
- name: static32-submit-codecov
run: source .github/setenv.sh && c4_submit_coverage static32 codecov