summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-11-30 08:34:20 +1100
committerDamien George <damien@micropython.org>2025-11-30 15:26:41 +1100
commitf63e64f4bc7097b4d41494d51198f41011e0daf0 (patch)
treebba14ddc2583eb7d7ca7f136ef53424863c11975
parent9c2b0cd2e3c9bfc96fe23f4a395f8f8115768fea (diff)
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>
-rw-r--r--.github/workflows/ports_stm32.yml2
-rwxr-xr-xtools/ci.sh9
2 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/ports_stm32.yml b/.github/workflows/ports_stm32.yml
index 45aa0c613..2ed730eb4 100644
--- a/.github/workflows/ports_stm32.yml
+++ b/.github/workflows/ports_stm32.yml
@@ -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 }}
diff --git a/tools/ci.sh b/tools/ci.sh
index e34940f75..eb658400b 100755
--- a/tools/ci.sh
+++ b/tools/ci.sh
@@ -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