Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/buildmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
types: [ published ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
group: buildmgr-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

permissions:
Expand All @@ -57,7 +57,7 @@ jobs:
name: build (${{ matrix.runs_on }}, ${{ matrix.arch }})
needs: [ setup, matrix_prep ]
runs-on: ${{ matrix.runs_on }}
timeout-minutes: 15
timeout-minutes: 25
strategy:
fail-fast: true
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/buildmgr/')) ||
((github.event.schedule != '') && (!github.event.repository.private))
runs-on: ubuntu-22.04
timeout-minutes: 15
timeout-minutes: 25
permissions:
contents: write
steps:
Expand Down Expand Up @@ -222,7 +222,7 @@ jobs:
needs: [ setup, build, docs ]
# Debian package generation in ubuntu 22.04 produces incompatible metadata
runs-on: ubuntu-22.04
timeout-minutes: 15
timeout-minutes: 25
permissions:
contents: write
steps:
Expand Down Expand Up @@ -344,7 +344,7 @@ jobs:

test:
needs: [ setup, matrix_prep, create_installer ]
timeout-minutes: 15
timeout-minutes: 25
runs-on: ${{ matrix.runs_on }}
name: test (${{ matrix.runs_on }}, ${{ matrix.arch }})
env:
Expand Down Expand Up @@ -512,7 +512,7 @@ jobs:
GCC_TOOLCHAIN_10_3_1: ${{ github.workspace }}/${{ matrix.toolchain_root }}
AC6_TOOLCHAIN_6_18_0: ${{ github.workspace }}/${{ matrix.toolchain_root }}
runs-on: ubuntu-22.04
timeout-minutes: 15
timeout-minutes: 25

steps:
- name: Harden Runner
Expand Down Expand Up @@ -630,7 +630,7 @@ jobs:

sanity-check-native:
needs: [ matrix_prep, create_installer ]
timeout-minutes: 15
timeout-minutes: 25
runs-on: ${{ matrix.runs_on }}
name: sanity check native (${{ matrix.runs_on }}, ${{ matrix.arch }})
env:
Expand Down Expand Up @@ -674,7 +674,7 @@ jobs:

sanity-check-docker:
needs: create_installer
timeout-minutes: 15
timeout-minutes: 25
runs-on: ubuntu-22.04
container:
image: ${{ matrix.image }}
Expand Down Expand Up @@ -720,6 +720,7 @@ jobs:

test-results-preparation:
name: "Publish Tests Results"
if: ${{ always() }}
needs: [ test ]
runs-on: ubuntu-22.04
steps:
Expand Down
61 changes: 53 additions & 8 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,46 @@ on:
permissions:
contents: write

concurrency:
group: nightly-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: false

jobs:
buildmgr:
if: github.repository == 'Open-CMSIS-Pack/devtools'
uses: ./.github/workflows/buildmgr.yml
secrets: inherit

packchk:
needs: [buildmgr]
if: github.repository == 'Open-CMSIS-Pack/devtools'
uses: ./.github/workflows/packchk.yml
secrets: inherit

packgen:
needs: [packchk]
if: github.repository == 'Open-CMSIS-Pack/devtools'
uses: ./.github/workflows/packgen.yml
secrets: inherit

projmgr:
needs: [packgen]
if: github.repository == 'Open-CMSIS-Pack/devtools'
uses: ./.github/workflows/projmgr.yml
secrets: inherit

svdconv:
needs: [projmgr]
if: github.repository == 'Open-CMSIS-Pack/devtools'
uses: ./.github/workflows/svdconv.yml
secrets: inherit

test_libs:
needs: [svdconv]
if: github.repository == 'Open-CMSIS-Pack/devtools'
uses: ./.github/workflows/test_libs.yml
secrets: inherit

coverage:
if: github.repository == 'Open-CMSIS-Pack/devtools'
runs-on: ubuntu-22.04
needs: [ buildmgr, packchk, packgen, projmgr, svdconv, test_libs ]

steps:
- name: Harden Runner
if: ${{ !github.event.repository.private }}
Expand All @@ -45,8 +58,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install \
lcov
sudo apt-get install lcov

- name: Download coverage report
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
Expand All @@ -57,7 +69,13 @@ jobs:

- 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
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
Expand All @@ -66,3 +84,30 @@ jobs:
name: merged-coverage-report
path: ./coverage/merged_coverage.info
if-no-files-found: error

publish-test-results:
if: always() && github.repository == 'Open-CMSIS-Pack/devtools'
name: Publish Test Results
runs-on: ubuntu-22.04
needs: [ buildmgr, packchk, packgen, projmgr, svdconv, test_libs ]
permissions:
checks: write
pull-requests: write
steps:
- name: Harden Runner
if: ${{ !github.event.repository.private }}
uses: step-security/harden-runner@6c3c2f2c1c457b00c10c4848d6f5491db3b629df # v2.18.0
with:
egress-policy: audit

- name: Download and Extract Artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: artifacts

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2.23.0
with:
commit: ${{ github.sha }}
report_individual_runs: true
files: "artifacts/**/*.xml"
11 changes: 6 additions & 5 deletions .github/workflows/packchk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ on:
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
group: packchk-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

permissions:
Expand All @@ -62,7 +62,7 @@ jobs:
needs: [ setup, matrix_prep ]
runs-on: ${{ matrix.runs_on }}
name: build (${{ matrix.runs_on }}, ${{ matrix.arch }})
timeout-minutes: 15
timeout-minutes: 25
strategy:
fail-fast: true
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
needs: [ setup, matrix_prep ]
runs-on: ${{ matrix.runs_on }}
name: test (${{ matrix.runs_on }}, ${{ matrix.arch }})
timeout-minutes: 15
timeout-minutes: 25
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
Expand Down Expand Up @@ -226,7 +226,7 @@ jobs:
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/
lcov_installer: lcov-1.15.tar.gz
runs-on: ubuntu-22.04
timeout-minutes: 15
timeout-minutes: 25
steps:
- name: Harden Runner
if: ${{ !github.event.repository.private }}
Expand Down Expand Up @@ -337,7 +337,7 @@ jobs:
startsWith(github.ref, 'refs/tags/tools/packchk/')
needs: [ build, test, coverage ]
runs-on: ubuntu-22.04
timeout-minutes: 15
timeout-minutes: 25
permissions:
contents: write
steps:
Expand Down Expand Up @@ -369,6 +369,7 @@ jobs:

test-results-preparation:
name: "Publish Tests Results"
if: ${{ always() }}
needs: [ test ]
runs-on: ubuntu-22.04
steps:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/packgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
group: packgen-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

permissions:
Expand All @@ -57,7 +57,7 @@ jobs:
needs: [ setup, matrix_prep ]
runs-on: ${{ matrix.runs_on }}
name: build (${{ matrix.runs_on }}, ${{ matrix.arch }})
timeout-minutes: 15
timeout-minutes: 25
strategy:
fail-fast: true
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
startsWith(github.ref, 'refs/tags/tools/packgen/')
needs: [ build, unittest ]
runs-on: ubuntu-22.04
timeout-minutes: 15
timeout-minutes: 25
permissions:
contents: write
steps:
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
needs: [ setup, matrix_prep ]
name: unittest (${{ matrix.runs_on }}, ${{ matrix.arch }})
runs-on: ${{ matrix.runs_on }}
timeout-minutes: 15
timeout-minutes: 25
strategy:
fail-fast: true
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
Expand Down Expand Up @@ -237,7 +237,7 @@ jobs:
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/
lcov_installer: lcov-1.15.tar.gz
runs-on: ubuntu-22.04
timeout-minutes: 15
timeout-minutes: 25
steps:
- name: Harden Runner
if: ${{ !github.event.repository.private }}
Expand Down Expand Up @@ -326,6 +326,7 @@ jobs:

test-results-preparation:
name: "Publish Tests Results"
if: ${{ always() }}
needs: [ unittest ]
runs-on: ubuntu-22.04
steps:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/projmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
group: projmgr-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

permissions:
Expand All @@ -61,7 +61,7 @@ jobs:
needs: [ setup, matrix_prep ]
runs-on: ${{ matrix.runs_on }}
name: build (${{ matrix.runs_on }},${{ matrix.arch }})
timeout-minutes: 20
timeout-minutes: 25
strategy:
# fail-fast: true
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
needs: [ setup, matrix_prep ]
name: build-swig (${{ matrix.runs_on }}, ${{ matrix.arch }})
runs-on: ${{ matrix.runs_on }}
timeout-minutes: 20
timeout-minutes: 25
strategy:
# fail-fast: true
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
startsWith(github.ref, 'refs/tags/tools/projmgr/')
needs: [ build, build-swig, unittest, coverage ]
runs-on: ubuntu-22.04
timeout-minutes: 15
timeout-minutes: 25
permissions:
contents: write

Expand Down Expand Up @@ -369,7 +369,7 @@ jobs:
needs: [ setup, matrix_prep ]
name: unittest (${{ matrix.runs_on }}, ${{ matrix.arch }})
runs-on: ${{ matrix.runs_on }}
timeout-minutes: 15
timeout-minutes: 25
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
Expand Down Expand Up @@ -429,7 +429,7 @@ jobs:
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/
lcov_installer: lcov-1.15.tar.gz
runs-on: ubuntu-22.04
timeout-minutes: 15
timeout-minutes: 25
steps:
- name: Harden Runner
if: ${{ !github.event.repository.private }}
Expand Down Expand Up @@ -518,6 +518,7 @@ jobs:

test-results-preparation:
name: "Publish Tests Results"
if: ${{ always() }}
needs: [ unittest ]
runs-on: ubuntu-22.04
steps:
Expand Down
Loading
Loading