From e9211b5aa80920d0fdfd6df4f0f0d18bb6c75361 Mon Sep 17 00:00:00 2001 From: liu weikai Date: Sat, 27 Jun 2026 02:59:15 +0800 Subject: [PATCH] ci: keep debug image info best-effort --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56f3dca5..aae8d0b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -159,8 +159,15 @@ jobs: } > "${SYMBOL_DIR}/manifest.txt" if [ -f "${BUILD_DIR}/firmware.bin" ]; then - python ~/.platformio/packages/tool-esptoolpy/esptool.py image_info --version 2 \ - "${BUILD_DIR}/firmware.bin" > "${SYMBOL_DIR}/firmware-image-info.txt" + if ! python ~/.platformio/packages/tool-esptoolpy/esptool.py image_info --version 2 \ + "${BUILD_DIR}/firmware.bin" > "${SYMBOL_DIR}/firmware-image-info.txt" 2> "${SYMBOL_DIR}/firmware-image-info.err"; then + { + echo "esptool image_info failed for ${BUILD_DIR}/firmware.bin" + echo "The firmware image is still included; image metadata is best-effort." + cat "${SYMBOL_DIR}/firmware-image-info.err" + } > "${SYMBOL_DIR}/firmware-image-info.txt" + fi + rm -f "${SYMBOL_DIR}/firmware-image-info.err" fi (cd "${SYMBOL_DIR}" && sha256sum * > SHA256SUMS)