mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 01:40:14 +01:00
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:
2
.github/workflows/ports_stm32.yml
vendored
2
.github/workflows/ports_stm32.yml
vendored
@@ -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 }}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user