From a155fb32ea459c65be46637ee4a96c4dd5738aff Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Mon, 23 Nov 2026 10:07:24 -0800 Subject: [PATCH] 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 --- .github/workflows/build_all_targets.yml | 3 +++ Tools/ci/package_build_artifacts.sh | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/build_all_targets.yml b/.github/workflows/build_all_targets.yml index d1bc6de57bb..81a442b9a8a 100644 --- a/.github/workflows/build_all_targets.yml +++ b/.github/workflows/build_all_targets.yml @@ -31,6 +31,8 @@ # _canbootloader.bin # - In-tree *_bootloader targets are attached as _bootloader.bin # (raw SWD image). Bootloader .px4 files are not attached. +# - px4io firmware is attached as .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 }} diff --git a/Tools/ci/package_build_artifacts.sh b/Tools/ci/package_build_artifacts.sh index e295e230de8..92695130565 100755 --- a/Tools/ci/package_build_artifacts.sh +++ b/Tools/ci/package_build_artifacts.sh @@ -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")")