mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Remove modalai_voxl2 and qurt from CI exclusion lists and add container overrides to use the private ghcr.io/px4/px4-dev-voxl2 image which contains the Qualcomm Hexagon SDK. - Add voxl2 build group with x64 runner for cross-compilation - Add GHCR credentials to workflow for private container pull - Add packages:read permission to workflow - Auto-build libfc_sensor.so stub during cmake configure - Handle missing .px4/.elf gracefully in artifact packaging Signed-off-by: Ramon Roche <mrpollo@gmail.com>
49 lines
1.8 KiB
Bash
Executable File
49 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
mkdir artifacts
|
|
cp **/**/*.px4 artifacts/ 2>/dev/null || true
|
|
cp **/**/*.elf artifacts/ 2>/dev/null || true
|
|
for build_dir_path in build/*/ ; do
|
|
build_dir_path=${build_dir_path::${#build_dir_path}-1}
|
|
build_dir=${build_dir_path#*/}
|
|
mkdir artifacts/$build_dir
|
|
find artifacts/ -maxdepth 1 -type f -name "*$build_dir*"
|
|
# Airframe
|
|
cp $build_dir_path/airframes.xml artifacts/$build_dir/
|
|
# Parameters
|
|
cp $build_dir_path/parameters.xml artifacts/$build_dir/
|
|
cp $build_dir_path/parameters.json artifacts/$build_dir/
|
|
cp $build_dir_path/parameters.json.xz artifacts/$build_dir/
|
|
# Actuators
|
|
cp $build_dir_path/actuators.json artifacts/$build_dir/
|
|
cp $build_dir_path/actuators.json.xz artifacts/$build_dir/
|
|
# Events
|
|
cp $build_dir_path/events/all_events.json.xz artifacts/$build_dir/
|
|
# ROS 2 msgs
|
|
cp $build_dir_path/events/all_events.json.xz artifacts/$build_dir/
|
|
# Module Docs
|
|
ls -la artifacts/$build_dir
|
|
echo "----------"
|
|
done
|
|
|
|
if [ -d artifacts/px4_sitl_default ]; then
|
|
# general metadata
|
|
mkdir artifacts/_general/
|
|
cp artifacts/px4_sitl_default/airframes.xml artifacts/_general/
|
|
# Airframe
|
|
cp artifacts/px4_sitl_default/airframes.xml artifacts/_general/
|
|
# Parameters
|
|
cp artifacts/px4_sitl_default/parameters.xml artifacts/_general/
|
|
cp artifacts/px4_sitl_default/parameters.json artifacts/_general/
|
|
cp artifacts/px4_sitl_default/parameters.json.xz artifacts/_general/
|
|
# Actuators
|
|
cp artifacts/px4_sitl_default/actuators.json artifacts/_general/
|
|
cp artifacts/px4_sitl_default/actuators.json.xz artifacts/_general/
|
|
# Events
|
|
cp artifacts/px4_sitl_default/events/all_events.json.xz artifacts/_general/
|
|
# ROS 2 msgs
|
|
cp artifacts/px4_sitl_default/events/all_events.json.xz artifacts/_general/
|
|
# Module Docs
|
|
ls -la artifacts/_general/
|
|
fi
|