@@ -19,37 +19,32 @@ jobs:
1919 secrets : inherit
2020
2121 packchk :
22- if : always()
23- needs : [buildmgr]
22+ if : github.repository == 'Open-CMSIS-Pack/devtools'
2423 uses : ./.github/workflows/packchk.yml
2524 secrets : inherit
2625
2726 packgen :
28- if : always()
29- needs : [packchk]
27+ if : github.repository == 'Open-CMSIS-Pack/devtools'
3028 uses : ./.github/workflows/packgen.yml
3129 secrets : inherit
3230
3331 projmgr :
34- if : always()
35- needs : [packgen]
32+ if : github.repository == 'Open-CMSIS-Pack/devtools'
3633 uses : ./.github/workflows/projmgr.yml
3734 secrets : inherit
3835
3936 svdconv :
40- if : always()
41- needs : [projmgr]
37+ if : github.repository == 'Open-CMSIS-Pack/devtools'
4238 uses : ./.github/workflows/svdconv.yml
4339 secrets : inherit
4440
4541 test_libs :
46- if : always()
47- needs : [svdconv]
42+ if : github.repository == 'Open-CMSIS-Pack/devtools'
4843 uses : ./.github/workflows/test_libs.yml
4944 secrets : inherit
5045
5146 coverage :
52- if : always()
47+ if : github.repository == 'Open-CMSIS-Pack/devtools'
5348 runs-on : ubuntu-22.04
5449 needs : [ buildmgr, packchk, packgen, projmgr, svdconv, test_libs ]
5550
6358 - name : Install dependencies
6459 run : |
6560 sudo apt-get update
66- sudo apt-get install -y --no-install-recommends lcov
61+ sudo apt-get install lcov
6762
6863 - name : Download coverage report
6964 uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
9186 if-no-files-found : error
9287
9388 publish-test-results :
94- if : github.repository == 'Open-CMSIS-Pack/devtools'
89+ if : always() && github.repository == 'Open-CMSIS-Pack/devtools'
9590 name : Publish Test Results
9691 runs-on : ubuntu-22.04
9792 needs : [ buildmgr, packchk, packgen, projmgr, svdconv, test_libs ]
@@ -111,11 +106,13 @@ jobs:
111106 run : |
112107 mkdir -p artifacts && cd artifacts
113108
114- artifacts_url="https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts"
115- gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while IFS=$'\t' read -r name url; do
116- gh api "$url" > "${name}.zip"
117- unzip -q -o -d "${name}" "${name}.zip"
118- rm "${name}.zip"
109+ for workflow in buildmgr packchk packgen projmgr svdconv test_libs; do
110+ artifacts_url="https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts"
111+ gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while IFS=$'\t' read -r name url; do
112+ gh api "$url" > "${name}.zip"
113+ unzip -q -d "${name}" "${name}.zip"
114+ rm "${name}.zip"
115+ done
119116 done
120117
121118 - name : Publish Test Results
0 commit comments