diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-02-15 20:37:06 +0100 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-02-19 13:13:16 +0100 |
| commit | fe70817653db4f53c3069fb733b73f06ddedfbcf (patch) | |
| tree | 72a51bccf4d18cef65285879125307fa3508cf8c /ci/script.sh | |
| parent | 16821c8315fc5e0f9bfbc6ddd7ca79cc2b1d5d40 (diff) | |
ci: report the size of built examples
Diffstat (limited to 'ci/script.sh')
| -rw-r--r-- | ci/script.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ci/script.sh b/ci/script.sh index 9bba8b3..93b4461 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -130,6 +130,7 @@ main() { fi done + local built=() cargo clean for ex in ${exs[@]}; do 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 arm_example "build" $ex "release" "$nightly" "2" cmp ci/builds/${ex}_release_1.hex ci/builds/${ex}_release_2.hex + + built+=( $ex ) fi 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 fi done + + ( cd target/$TARGET/release/examples/ && size ${built[@]} ) esac } |
