mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 02:06:27 +08:00
eb9a76cfaf
Add four reusable building blocks that upcoming CI optimization PRs will consume. No existing workflow is modified; these files are dormant until referenced. - .github/actions/setup-ccache: restore ~/.ccache with content-hash keys, write ccache.conf with compression and content-based compiler check - .github/actions/save-ccache: print stats and save the cache under the primary key produced by setup-ccache - .github/actions/build-gazebo-sitl: build px4_sitl_default plus the Gazebo Classic plugins with ccache stats between stages - Tools/ci/run-clang-tidy-pr.py: compute the translation units affected by a PR diff and invoke Tools/run-clang-tidy.py on that subset only, exiting silently when no C++ files changed Signed-off-by: Ramon Roche <mrpollo@gmail.com>
22 lines
522 B
YAML
22 lines
522 B
YAML
name: Build Gazebo Classic SITL
|
|
description: Build PX4 firmware and Gazebo Classic plugins with ccache stats
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Build - PX4 Firmware (SITL)
|
|
shell: bash
|
|
run: make px4_sitl_default
|
|
|
|
- name: Cache - Stats after PX4 Firmware
|
|
shell: bash
|
|
run: ccache -s
|
|
|
|
- name: Build - Gazebo Classic Plugins
|
|
shell: bash
|
|
run: make px4_sitl_default sitl_gazebo-classic
|
|
|
|
- name: Cache - Stats after Gazebo Plugins
|
|
shell: bash
|
|
run: ccache -s
|