tools/ci.sh: Install latest ARM toolchain for stm32 CI.

This is needed to build Cortex-M55 (STM32N6) based boards.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2025-11-30 08:34:20 +11:00
parent 9c2b0cd2e3
commit f63e64f4bc
2 changed files with 9 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ jobs:
steps:
- uses: actions/checkout@v6
- name: Install packages
run: tools/ci.sh stm32_setup
run: tools/ci.sh stm32_setup && tools/ci.sh stm32_path >> $GITHUB_PATH
- name: Build ci_${{matrix.ci_func }}
run: tools/ci.sh ${{ matrix.ci_func }}

View File

@@ -494,12 +494,19 @@ function ci_samd_build {
# ports/stm32
function ci_stm32_setup {
ci_gcc_arm_setup
# Use a recent version of the ARM toolchain, to work with Cortex-M55.
wget https://developer.arm.com/-/media/Files/downloads/gnu/14.3.rel1/binrel/arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi.tar.xz
xzcat arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi.tar.xz | tar x
pip3 install pyelftools
pip3 install ar
pip3 install pyhy
}
function ci_stm32_path {
echo $(pwd)/arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi/bin
}
function ci_stm32_pyb_build {
make ${MAKEOPTS} -C mpy-cross
make ${MAKEOPTS} -C ports/stm32 MICROPY_PY_NETWORK_WIZNET5K=5200 submodules