nightly #462
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |