mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
ci: consolidate into a matrix loop
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
@@ -11,12 +11,27 @@ on:
|
|||||||
- 'release/**'
|
- 'release/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
uorb-graph-check:
|
metadata-check:
|
||||||
name: Check uORB graph JSONs
|
name: ${{ matrix.name }} metadata
|
||||||
runs-on: [runs-on,runner=2cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=true]
|
runs-on: [runs-on,runner=2cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=true]
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/px4/px4-dev:v1.16.0-rc1
|
image: ghcr.io/px4/px4-dev:v1.16.0-rc1
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- name: uORB Graphs
|
||||||
|
script: Tools/ci/metadata_uorb_graph.sh
|
||||||
|
- name: Failsafe Web
|
||||||
|
script: Tools/ci/metadata_failsafe_web.sh
|
||||||
|
- name: uORB Messages
|
||||||
|
script: Tools/ci/metadata_msg_docs.sh
|
||||||
|
- name: Parameter Reference
|
||||||
|
script: Tools/ci/metadata_parameters.sh
|
||||||
|
- name: Airframe Reference
|
||||||
|
script: Tools/ci/metadata_airframe.sh
|
||||||
|
- name: Module Reference
|
||||||
|
script: Tools/ci/metadata_modules.sh
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -26,95 +41,5 @@ jobs:
|
|||||||
- name: Mark all directories safe for Git
|
- name: Mark all directories safe for Git
|
||||||
run: git config --system --add safe.directory '*'
|
run: git config --system --add safe.directory '*'
|
||||||
|
|
||||||
- name: Run uORB graph docs check
|
- name: Run ${{ matrix.name }} metadata check
|
||||||
run: Tools/ci/metadata_uorb_graph.sh --test-only
|
run: ${{ matrix.script }} --test-only
|
||||||
|
|
||||||
failsafe-web-check:
|
|
||||||
name: Check failsafe web metadata files
|
|
||||||
runs-on: [runs-on,runner=2cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=true]
|
|
||||||
container:
|
|
||||||
image: ghcr.io/px4/px4-dev:v1.16.0-rc1
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
persist-credentials: true
|
|
||||||
|
|
||||||
- name: Mark all directories safe for Git
|
|
||||||
run: git config --system --add safe.directory '*'
|
|
||||||
|
|
||||||
- name: Run failsafe web metadata check
|
|
||||||
run: Tools/ci/metadata_failsafe_web.sh --test-only
|
|
||||||
|
|
||||||
msg-docs-check:
|
|
||||||
name: Check uORB message reference docs
|
|
||||||
runs-on: [runs-on,runner=2cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=true]
|
|
||||||
container:
|
|
||||||
image: ghcr.io/px4/px4-dev:v1.16.0-rc1
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
persist-credentials: true
|
|
||||||
|
|
||||||
- name: Mark all directories safe for Git
|
|
||||||
run: git config --system --add safe.directory '*'
|
|
||||||
|
|
||||||
- name: Run uORB message docs check
|
|
||||||
run: Tools/ci/metadata_msg_docs.sh --test-only
|
|
||||||
|
|
||||||
parameters-check:
|
|
||||||
name: Check parameter reference metadata
|
|
||||||
runs-on: [runs-on,runner=2cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=true]
|
|
||||||
container:
|
|
||||||
image: ghcr.io/px4/px4-dev:v1.16.0-rc1
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
persist-credentials: true
|
|
||||||
|
|
||||||
- name: Mark all directories safe for Git
|
|
||||||
run: git config --system --add safe.directory '*'
|
|
||||||
|
|
||||||
- name: Run parameter docs check
|
|
||||||
run: Tools/ci/metadata_parameters.sh --test-only
|
|
||||||
|
|
||||||
airframe-check:
|
|
||||||
name: Check airframe reference metadata
|
|
||||||
runs-on: [runs-on,runner=2cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=true]
|
|
||||||
container:
|
|
||||||
image: ghcr.io/px4/px4-dev:v1.16.0-rc1
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
persist-credentials: true
|
|
||||||
|
|
||||||
- name: Mark all directories safe for Git
|
|
||||||
run: git config --system --add safe.directory '*'
|
|
||||||
|
|
||||||
- name: Run airframe docs check
|
|
||||||
run: Tools/ci/metadata_airframe.sh --test-only
|
|
||||||
|
|
||||||
modules-check:
|
|
||||||
name: Check module reference metadata
|
|
||||||
runs-on: [runs-on,runner=2cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=true]
|
|
||||||
container:
|
|
||||||
image: ghcr.io/px4/px4-dev:v1.16.0-rc1
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
persist-credentials: true
|
|
||||||
|
|
||||||
- name: Mark all directories safe for Git
|
|
||||||
run: git config --system --add safe.directory '*'
|
|
||||||
|
|
||||||
- name: Run module docs check
|
|
||||||
run: Tools/ci/metadata_modules.sh --test-only
|
|
||||||
|
|||||||
Reference in New Issue
Block a user