tools/ci.sh: Add unix, stm32 and rp2 ports to code size check.
Now that the code-size-check CI action gives a nice report (as a comment) on the code size difference, it's possible to have a few more ports reported there. In this commit, unix, stm32 and rp2 are added. Unix represents non-MCU builds, and stm32 and rp2 represent ARM-based builds, for ports that have lots of features enabled. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
294098d28e
commit
e0d1127246
14
tools/ci.sh
14
tools/ci.sh
@ -49,6 +49,10 @@ function ci_code_size_setup {
|
||||
}
|
||||
|
||||
function ci_code_size_build {
|
||||
# check the following ports for the change in their code size
|
||||
PORTS_TO_CHECK=bmusp
|
||||
SUBMODULES="lib/berkeley-db-1.xx lib/mbedtls lib/micropython-lib lib/pico-sdk lib/stm32lib lib/tinyusb"
|
||||
|
||||
# starts off at either the ref/pull/N/merge FETCH_HEAD, or the current branch HEAD
|
||||
git checkout -b pull_request # save the current location
|
||||
git remote add upstream https://github.com/micropython/micropython.git
|
||||
@ -56,14 +60,16 @@ function ci_code_size_build {
|
||||
# build reference, save to size0
|
||||
# ignore any errors with this build, in case master is failing
|
||||
git checkout `git merge-base --fork-point upstream/master pull_request`
|
||||
git submodule update --init $SUBMODULES
|
||||
git show -s
|
||||
tools/metrics.py clean bm
|
||||
tools/metrics.py build bm | tee ~/size0 || true
|
||||
tools/metrics.py clean $PORTS_TO_CHECK
|
||||
tools/metrics.py build $PORTS_TO_CHECK | tee ~/size0 || true
|
||||
# build PR/branch, save to size1
|
||||
git checkout pull_request
|
||||
git submodule update --init $SUBMODULES
|
||||
git log upstream/master..HEAD
|
||||
tools/metrics.py clean bm
|
||||
tools/metrics.py build bm | tee ~/size1
|
||||
tools/metrics.py clean $PORTS_TO_CHECK
|
||||
tools/metrics.py build $PORTS_TO_CHECK | tee ~/size1
|
||||
}
|
||||
|
||||
########################################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user