mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
ci(build_all): publish raw px4io firmware
build_all already builds the px4io targets and publishes their .px4, .elf and SBOM, but not the raw .bin. The .bin is the image the FMU carries in its ROMFS and flashes to the IO coprocessor with "px4io update", so it is the one worth having next to the other firmware. Copy it into the build artifacts so it is synced to S3 with everything else, and attach it to the GitHub Release on tags. Assisted-by: Claude:claude-fable-5-2 Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
1 parent
e8f9fed0c8
commit
a155fb32ea
2 files changed
+13
No files matched your search
@@ -31,6 +31,8 @@
|
||||
# <target>_canbootloader.bin
|
||||
# - In-tree *_bootloader targets are attached as <target>_bootloader.bin
|
||||
# (raw SWD image). Bootloader .px4 files are not attached.
|
||||
# - px4io firmware is attached as <target>.bin (e.g. px4_io-v2_default.bin),
|
||||
# the raw image the FMU flashes to the IO coprocessor.
|
||||
#
|
||||
# IMPORTANT: Version tags do NOT upload to stable/ or beta/. Only the
|
||||
# corresponding branch pushes control those directories. This prevents
|
||||
@@ -394,6 +396,7 @@ jobs:
|
||||
artifacts/*.uavcan.bin
|
||||
artifacts/*_bootloader.bin
|
||||
artifacts/*_canbootloader.bin
|
||||
artifacts/*_io-v*_default.bin
|
||||
artifacts/*.deb
|
||||
artifacts/**/*.sbom.spdx.json
|
||||
name: ${{ steps.upload-location.outputs.uploadlocation }}
|
||||
@@ -7,6 +7,8 @@ mkdir artifacts
|
||||
# - Bootloaders (*_bootloader and *_canbootloader): raw .bin for SWD
|
||||
# *_bootloader_* variants (e.g. bootloader_secureboot) are omitted;
|
||||
# those images are baked with in-tree test keys.
|
||||
# - px4io firmware (*_io-v*_default): raw .bin, the image "px4io update"
|
||||
# flashes to the IO coprocessor from the FMU.
|
||||
for uavcan_bin in build/*/*.uavcan.bin; do
|
||||
[ -f "$uavcan_bin" ] || continue
|
||||
build_dir=$(basename "$(dirname "$uavcan_bin")")
|
||||
@@ -21,6 +23,14 @@ for bl_dir in build/*_bootloader build/*_canbootloader; do
|
||||
cp "$bl_bin" "artifacts/${build_dir}.bin"
|
||||
done
|
||||
|
||||
for io_dir in build/*_io-v*_default; do
|
||||
[ -d "$io_dir" ] || continue
|
||||
build_dir=$(basename "$io_dir")
|
||||
io_bin="$io_dir/${build_dir}.bin"
|
||||
[ -f "$io_bin" ] || continue
|
||||
cp "$io_bin" "artifacts/${build_dir}.bin"
|
||||
done
|
||||
|
||||
for px4_file in build/*/*.px4; do
|
||||
[ -f "$px4_file" ] || continue
|
||||
build_dir=$(basename "$(dirname "$px4_file")")
|
||||
|
||||
Reference in new issue
Block a user