mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-26 05:29:38 +01:00
ci: report the size of built examples
This commit is contained in:
parent
16821c8315
commit
fe70817653
1 changed files with 5 additions and 0 deletions
|
@ -130,6 +130,7 @@ main() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
local built=()
|
||||||
cargo clean
|
cargo clean
|
||||||
for ex in ${exs[@]}; do
|
for ex in ${exs[@]}; do
|
||||||
if [ $ex = ramfunc ] && [ $T = thumbv6m-none-eabi ]; then
|
if [ $ex = ramfunc ] && [ $T = thumbv6m-none-eabi ]; then
|
||||||
|
@ -148,6 +149,8 @@ main() {
|
||||||
cmp ci/builds/${ex}_debug_1.hex ci/builds/${ex}_debug_2.hex
|
cmp ci/builds/${ex}_debug_1.hex ci/builds/${ex}_debug_2.hex
|
||||||
arm_example "build" $ex "release" "$nightly" "2"
|
arm_example "build" $ex "release" "$nightly" "2"
|
||||||
cmp ci/builds/${ex}_release_1.hex ci/builds/${ex}_release_2.hex
|
cmp ci/builds/${ex}_release_1.hex ci/builds/${ex}_release_2.hex
|
||||||
|
|
||||||
|
built+=( $ex )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $TARGET != thumbv6m-none-eabi ]; then
|
if [ $TARGET != thumbv6m-none-eabi ]; then
|
||||||
|
@ -157,6 +160,8 @@ main() {
|
||||||
cmp ci/builds/${ex}_timer-queue_release_1.hex ci/builds/${ex}_timer-queue_release_2.hex
|
cmp ci/builds/${ex}_timer-queue_release_1.hex ci/builds/${ex}_timer-queue_release_2.hex
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
( cd target/$TARGET/release/examples/ && size ${built[@]} )
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue