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
21 changes: 9 additions & 12 deletions .github/workflows/buildmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,7 @@ on:
- '.github/workflows/buildmgr.yml'
- '.github/matrix_includes_buildmgr.json'
- 'CMakeLists.txt'
- 'libs/crossplatform/**'
- 'libs/errlog/**'
- 'libs/xmlreader/**'
- 'libs/xmltree/**'
- 'libs/xmltreeslim/**'
- 'libs/rteutils/**'
- 'libs/rtemodel/**'
- 'libs/rtefsutils/**'
- 'libs/**'
- 'tools/buildmgr/**'
- '!**/docs/**/*'
- '!**/*.md'
Expand All @@ -55,6 +48,7 @@ jobs:
workflow_name: buildmgr

build:
name: build (${{ matrix.runs_on }}, ${{ matrix.arch }})
needs: [ setup, matrix_prep ]
runs-on: ${{ matrix.runs_on }}
timeout-minutes: 15
Expand Down Expand Up @@ -96,7 +90,7 @@ jobs:
github.event_name == 'release' &&
(startsWith(matrix.runs_on, 'macos') || startsWith(matrix.runs_on, 'ubuntu'))
run: |
binary_path="./build/tools/buildmgr/cbuildgen/${{ matrix.target }}-${{ matrix.arch }}/Release/cbuildgen${{ matrix.binary_extension }}"
binary_path="./build/tools/buildmgr/cbuildgen/${{ matrix.target }}-${{ matrix.arch }}/Release/cbuildgen${{ matrix.binary_extension }}"
echo "Stripping binary at: $binary_path"
# Use appropriate strip tool based on architecture and target
if [[ "${{ matrix.arch }}" == "arm64" && "${{ matrix.target }}" == "linux" ]]; then
Expand Down Expand Up @@ -164,7 +158,7 @@ jobs:
id: var
run: |
echo "retention_days=$(echo '${{ (!github.event.repository.private && (github.event_name == 'push' || github.event.schedule != '')) && '7' || '1' }}')" >> $GITHUB_OUTPUT

- name: Upload documentation
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
Expand Down Expand Up @@ -338,10 +332,11 @@ jobs:
tag: ${{ github.ref }}
overwrite: true

tests:
test:
needs: [ setup, matrix_prep, create_installer ]
timeout-minutes: 15
runs-on: ${{ matrix.runs_on }}
name: test (${{ matrix.runs_on }}, ${{ matrix.arch }})
env:
arm_gcc_install_base: ${{ matrix.arm_gcc_install_base }}
CI_CBUILD_DEB_PKG: ${{ github.workspace }}
Expand Down Expand Up @@ -631,6 +626,7 @@ jobs:
needs: [ matrix_prep, create_installer ]
timeout-minutes: 15
runs-on: ${{ matrix.runs_on }}
name: sanity check native (${{ matrix.runs_on }}, ${{ matrix.arch }})
env:
CMSIS_PACK_ROOT: ${{ github.workspace }}/packs
AC6_TOOLCHAIN_ROOT: ""
Expand Down Expand Up @@ -669,6 +665,7 @@ jobs:
shell: bash
run: |
${{ github.workspace }}/cbuild/bin/cbuildgen | grep "(cbuildgen): Build Process Manager"

sanity-check-docker:
needs: create_installer
timeout-minutes: 15
Expand Down Expand Up @@ -717,7 +714,7 @@ jobs:

test-results-preparation:
name: "Publish Tests Results"
needs: [ tests ]
needs: [ test ]
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
languages: cpp
queries: security-and-quality
config-file: ./.github/codeql-config.yml

- name: Create build folder
run: mkdir build

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/packchk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
build:
needs: [ setup, matrix_prep ]
runs-on: ${{ matrix.runs_on }}
name: build (${{ matrix.runs_on }}, ${{ matrix.arch }})
timeout-minutes: 15
strategy:
fail-fast: true
Expand Down Expand Up @@ -105,7 +106,7 @@ jobs:
shell: bash
working-directory: build/tools/packchk/
run: |
mkdir -p packchk_release_bin
mkdir -p packchk_release_bin

# Extract the binary tarball into the release directory
tar -xvf packchk-*-${{ matrix.target }}-${{ matrix.arch }}.tbz2 -C packchk_release_bin
Expand Down Expand Up @@ -143,6 +144,7 @@ jobs:
test:
needs: [ setup, matrix_prep ]
runs-on: ${{ matrix.runs_on }}
name: test (${{ matrix.runs_on }}, ${{ matrix.arch }})
timeout-minutes: 15
strategy:
fail-fast: false
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/packgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
build:
needs: [ setup, matrix_prep ]
runs-on: ${{ matrix.runs_on }}
name: build (${{ matrix.runs_on }}, ${{ matrix.arch }})
timeout-minutes: 15
strategy:
fail-fast: true
Expand Down Expand Up @@ -89,7 +90,7 @@ jobs:
github.event_name == 'release' &&
(startsWith(matrix.runs_on, 'macos') || startsWith(matrix.runs_on, 'ubuntu'))
run: |
binary_path="./build/tools/packgen/${{ matrix.target }}-${{ matrix.arch }}/Release/${{ matrix.binary }}"
binary_path="./build/tools/packgen/${{ matrix.target }}-${{ matrix.arch }}/Release/${{ matrix.binary }}"
echo "Stripping binary at: $binary_path"
# Use appropriate strip tool based on architecture and target
if [[ "${{ matrix.arch }}" == "arm64" && "${{ matrix.target }}" == "linux" ]]; then
Expand Down Expand Up @@ -177,6 +178,7 @@ jobs:

unittest:
needs: [ setup, matrix_prep ]
name: unittest (${{ matrix.runs_on }}, ${{ matrix.arch }})
runs-on: ${{ matrix.runs_on }}
timeout-minutes: 15
strategy:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/projmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
build:
needs: [ setup, matrix_prep ]
runs-on: ${{ matrix.runs_on }}
name: build (${{ matrix.runs_on }},${{ matrix.arch }})
timeout-minutes: 15
strategy:
# fail-fast: true
Expand Down Expand Up @@ -94,7 +95,7 @@ jobs:
github.event_name == 'release' &&
(startsWith(matrix.runs_on, 'macos') || startsWith(matrix.runs_on, 'ubuntu'))
run: |
binary_path="./build/tools/projmgr/${{ matrix.target }}-${{ matrix.arch }}/Release/${{ matrix.binary }}"
binary_path="./build/tools/projmgr/${{ matrix.target }}-${{ matrix.arch }}/Release/${{ matrix.binary }}"
echo "Stripping binary at: $binary_path"
# Use appropriate strip tool based on architecture and target
if [[ "${{ matrix.arch }}" == "arm64" && "${{ matrix.target }}" == "linux" ]]; then
Expand Down Expand Up @@ -131,6 +132,7 @@ jobs:

build-swig:
needs: [ setup, matrix_prep ]
name: build-swig (${{ matrix.runs_on }}, ${{ matrix.arch }})
runs-on: ${{ matrix.runs_on }}
timeout-minutes: 15
strategy:
Expand Down Expand Up @@ -358,6 +360,7 @@ jobs:

unittest:
needs: [ setup, matrix_prep ]
name: unittest (${{ matrix.runs_on }}, ${{ matrix.arch }})
runs-on: ${{ matrix.runs_on }}
timeout-minutes: 15
strategy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ permissions: read-all

jobs:
analysis:
if: github.repository == 'Open-CMSIS-Pack/devtools'
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shared_setup_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
run_if:
description: 'True if workflow needs to run'
default: false
default: false
required: true
type: boolean
outputs:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/svdconv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:

build:
needs: [ setup, matrix_prep ]
name: build (${{ matrix.runs_on }}, ${{ matrix.arch }})
runs-on: ${{ matrix.runs_on }}
timeout-minutes: 15
strategy:
Expand Down Expand Up @@ -101,7 +102,7 @@ jobs:
tar -xvf svdconv-*-${{ matrix.target }}-${{ matrix.arch }}.tbz2 -C svdconv_release_bin

# Construct the path to the extracted binary
binary_path="./svdconv_release_bin/${{ matrix.binary }}"
binary_path="./svdconv_release_bin/${{ matrix.binary }}"
echo "Stripping binary at: $binary_path"

# Use appropriate strip tool based on architecture and target
Expand Down Expand Up @@ -132,6 +133,7 @@ jobs:

test:
needs: [ setup, matrix_prep ]
name: test (${{ matrix.runs_on }}, ${{ matrix.arch }})
runs-on: ${{ matrix.runs_on }}
timeout-minutes: 15
strategy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:

test_libs:
runs-on: ${{ matrix.runs_on }}
name: test_libs (${{ matrix.runs_on }}, ${{ matrix.arch }})
needs: [ setup, matrix_prep ]
timeout-minutes: 15
strategy:
Expand Down
Loading