summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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