forked from chipsalliance/Cores-VeeR-EL2
-
Notifications
You must be signed in to change notification settings - Fork 1
112 lines (93 loc) · 2.86 KB
/
report-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
102
103
104
105
106
107
108
109
110
111
112
name: Coverage report
on:
workflow_call:
jobs:
coverage-report:
name: Coverage report
runs-on: ubuntu-latest
container: ghcr.io/antmicro/cores-veer-el2:latest
env:
DEBIAN_FRONTEND: "noninteractive"
steps:
- name: Setup repository
uses: actions/checkout@v3
- name: install SiteSpawner package
shell: bash
run: |
python3 -m venv .venv
.venv/bin/python3 -m pip install tools/SiteSpawner
source .venv/bin/activate
echo "PATH=$PATH" >> $GITHUB_ENV
python3 -m pip install tools/SiteSpawner
# This step is needed to have the same VeeR codebase as used in tests
- name: Configure VeeR
shell: bash
run: |
export RV_ROOT=`pwd`
make defines.h -f $RV_ROOT/tools/Makefile
- name: Setup lcov
shell: bash
run: |
git clone https://github.com/linux-test-project/lcov
pushd lcov
git checkout v2.1
echo "LCOV_PATH=`realpath bin`" >> "$GITHUB_ENV"
popd
- name: Download coverage reports
uses: actions/download-artifact@v3
with:
name: regression_tests_coverage_data
path: ./
- name: Download coverage reports
uses: actions/download-artifact@v3
with:
name: verification_tests_coverage_data
path: ./
- name: Download coverage reports
uses: actions/download-artifact@v3
with:
name: uarch_tests_coverage_data
path: ./
- name: Download coverage reports
uses: actions/download-artifact@v3
with:
name: riscv-dv_coverage_data
path: ./
- name: Download coverage reports
uses: actions/download-artifact@v3
with:
name: riscof_coverage_data
path: ./
- name: Download coverage reports
uses: actions/download-artifact@v3
with:
name: openocd_coverage_data
path: ./
- name: Generate reports
shell: bash
run: |
export PATH=${{ env.LCOV_PATH }}:${PATH}
sis -d reports . --report-dir report --src-pattern \*design\*
- name: Pack artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: coverage_report
path: ./report
custom-coverage-report:
name: Custom coverage report
runs-on: [ self-hosted, Linux, X64, gcp-custom-runners ]
if: github.event.pull_request.merged == true
container: centos:8
env:
GHA_EXTERNAL_DISK: additional-tools
GHA_SA: gh-sa-veer-uploader
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Prepare Environment
run: _secret_prepare_env
- name: Generate custom report
run: _secret_custom_report
continue-on-error: true