mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Bump every GitHub Action in the repository to its latest major version, addressing the upcoming Node.js 20 deprecation. Several of the old versions (checkout v4, cache v4, setup-node v4, labeler v5) use the Node 20 runtime which GitHub is deprecating. The new versions use Node 22. - actions/checkout v4/v5 to v6 - actions/upload-artifact v4 to v7 - actions/download-artifact v4 to v8 - actions/cache, cache/restore, cache/save v4 to v5 - actions/setup-node v4 to v6 - actions/setup-python v5 to v6 - actions/github-script v7/v8 to v9 - actions/labeler v5 to v6 - peter-evans/find-comment v3 to v4 - dorny/paths-filter v3 to v4 - codecov/codecov-action v4 to v6 - docker/setup-buildx-action v3 to v4 - docker/build-push-action v6 to v7 - tj-actions/changed-files v46 to v47 Signed-off-by: Ramon Roche <mrpollo@gmail.com>
78 lines
2.4 KiB
YAML
78 lines
2.4 KiB
YAML
name: ITCM check
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check_itcm:
|
|
name: Checking ${{ matrix.target }}
|
|
runs-on: [runs-on,runner=4cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=false,extras=s3-cache]
|
|
container:
|
|
image: ghcr.io/px4/px4-dev:v1.17.0-rc2
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- target: px4_fmu-v5x
|
|
scripts: >
|
|
boards/px4/fmu-v5x/nuttx-config/scripts/itcm_gen_functions.ld
|
|
boards/px4/fmu-v5x/nuttx-config/scripts/itcm_static_functions.ld
|
|
- target: px4_fmu-v6xrt
|
|
scripts: >
|
|
boards/px4/fmu-v6xrt/nuttx-config/scripts/itcm_functions_includes.ld
|
|
boards/px4/fmu-v6xrt/nuttx-config/scripts/itcm_static_functions.ld
|
|
- target: nxp_tropic-community
|
|
scripts: >
|
|
boards/nxp/tropic-community/nuttx-config/scripts/itcm_functions_includes.ld
|
|
boards/nxp/tropic-community/nuttx-config/scripts/itcm_static_functions.ld
|
|
- target: nxp_mr-tropic
|
|
scripts: >
|
|
boards/nxp/mr-tropic/nuttx-config/scripts/itcm_functions_includes.ld
|
|
boards/nxp/mr-tropic/nuttx-config/scripts/itcm_static_functions.ld
|
|
steps:
|
|
- uses: runs-on/action@v2
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 1
|
|
- name: Configure Git Safe Directory
|
|
run: git config --system --add safe.directory '*'
|
|
|
|
- uses: ./.github/actions/setup-ccache
|
|
id: ccache
|
|
with:
|
|
cache-key-prefix: ccache-itcm-${{ matrix.target }}
|
|
max-size: 200M
|
|
|
|
- name: Build Target
|
|
run: make ${{ matrix.target }}
|
|
|
|
- name: Copy built ELF
|
|
run: cp ./build/**/*.elf ./built.elf
|
|
|
|
- name: Install itcm-check dependencies
|
|
run: pip3 install -r Tools/setup/optional-requirements.txt --break-system-packages
|
|
|
|
- name: Execute the itcm-check
|
|
run: python3 Tools/itcm_check.py --elf-file built.elf --script-files ${{ matrix.scripts }}
|
|
|
|
- uses: ./.github/actions/save-ccache
|
|
if: always()
|
|
with:
|
|
cache-primary-key: ${{ steps.ccache.outputs.cache-primary-key }}
|