Skip to content

Commit 5be28a3

Browse files
dpgeorgeAnton-2
authored andcommitted
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>
1 parent aa9cf73 commit 5be28a3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/ports_stm32.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v6
3232
- name: Install packages
33-
run: tools/ci.sh stm32_setup
33+
run: tools/ci.sh stm32_setup && tools/ci.sh stm32_path >> $GITHUB_PATH
3434
- name: Build ci_${{matrix.ci_func }}
3535
run: tools/ci.sh ${{ matrix.ci_func }}
3636

tools/ci.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,12 +494,19 @@ function ci_samd_build {
494494
# ports/stm32
495495

496496
function ci_stm32_setup {
497-
ci_gcc_arm_setup
497+
# Use a recent version of the ARM toolchain, to work with Cortex-M55.
498+
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
499+
xzcat arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi.tar.xz | tar x
500+
498501
pip3 install pyelftools
499502
pip3 install ar
500503
pip3 install pyhy
501504
}
502505

506+
function ci_stm32_path {
507+
echo $(pwd)/arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi/bin
508+
}
509+
503510
function ci_stm32_pyb_build {
504511
make ${MAKEOPTS} -C mpy-cross
505512
make ${MAKEOPTS} -C ports/stm32 MICROPY_PY_NETWORK_WIZNET5K=5200 submodules

0 commit comments

Comments
 (0)