ci: report rootfs contents when firmware exceeds flash

This commit is contained in:
2026-09-26 15:35:46 +02:00
parent d48f415bcf
commit 2571aeaa4f
+8 -1
View File
@@ -40,7 +40,14 @@ jobs:
mkdir -p "$BR2_DL_DIR" /tmp/ccache mkdir -p "$BR2_DL_DIR" /tmp/ccache
ln -s /tmp/ccache "$HOME/.ccache" ln -s /tmp/ccache "$HOME/.ccache"
bash builder.sh "$DEVICE" if ! bash builder.sh "$DEVICE"; then
echo '--- largest files retained in the failed rootfs ---'
find openipc/output/target -type f -printf '%s\t%p\n' | \
sort -nr | sed -n '1,100p' || true
echo '--- rootfs target usage ---'
du -sh openipc/output/target 2>/dev/null || true
exit 1
fi
mkdir -p dist mkdir -p dist
firmware=$(find openipc/output/images -type f -name 'openipc*nor*.tgz' -print -quit) firmware=$(find openipc/output/images -type f -name 'openipc*nor*.tgz' -print -quit)