forked from Open-CMSIS-Pack/devtools
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (54 loc) · 1.85 KB
/
nightly.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
name: nightly
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
buildmgr:
if: github.repository == 'Open-CMSIS-Pack/devtools'
uses: Open-CMSIS-Pack/devtools/.github/workflows/buildmgr.yml@main
secrets: inherit
packchk:
needs: [buildmgr]
uses: Open-CMSIS-Pack/devtools/.github/workflows/packchk.yml@main
secrets: inherit
packgen:
needs: [packchk]
uses: Open-CMSIS-Pack/devtools/.github/workflows/packgen.yml@main
secrets: inherit
projmgr:
needs: [packgen]
uses: Open-CMSIS-Pack/devtools/.github/workflows/projmgr.yml@main
secrets: inherit
svdconv:
needs: [projmgr]
uses: Open-CMSIS-Pack/devtools/.github/workflows/svdconv.yml@main
secrets: inherit
test_libs:
needs: [svdconv]
uses: Open-CMSIS-Pack/devtools/.github/workflows/test_libs.yml@main
coverage:
runs-on: ubuntu-22.04
needs: [ buildmgr, packchk, packgen, projmgr, svdconv, test_libs ]
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install \
lcov
- name: Download coverage report
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
pattern: coverage-report-*
path: coverage/
merge-multiple: true
- name: Consolidate coverage data
run: |
lcov --rc lcov_branch_coverage=1 --add-tracefile coverage_packchk.info -a coverage_packgen.info -a coverage_projmgr.info -a coverage_buildmgr.info -a coverage_svdconv.info -o merged_coverage.info
working-directory: coverage/
- name: Archive merged coverage report
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: merged-coverage-report
path: ./coverage/merged_coverage.info
if-no-files-found: error