ci: report rootfs contents when firmware exceeds flash
This commit is contained in:
@@ -40,7 +40,14 @@ jobs:
|
||||
mkdir -p "$BR2_DL_DIR" /tmp/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
|
||||
firmware=$(find openipc/output/images -type f -name 'openipc*nor*.tgz' -print -quit)
|
||||
|
||||
Reference in New Issue
Block a user