1+ #
2+ # Copyright (c) 2025, RT-Thread Development Team
3+ #
4+ # SPDX-License-Identifier: Apache-2.0
5+ #
6+ # Change Logs:
7+ # Date Author Notes
8+ # 2025-03-22 Supperthomas 添加upload 上传编译固件
9+ #
110name : RT-Thread BSP Static Build Check
211
312# Controls when the action will run. Triggers the workflow on push or pull request
@@ -41,34 +50,17 @@ jobs:
4150 RTT_TOOL_CHAIN : " sourcery-arm"
4251 SUB_RTT_BSP :
4352 - " stm32/stm32f407-rt-spark"
44- - RTT_BSP : " RTduino/Arduino Libraries (STM32F412 Nucleo)"
53+ - RTT_BSP : " RTduino_Arduino Libraries (STM32F412 Nucleo)"
4554 RTT_TOOL_CHAIN : " sourcery-arm"
4655 SUB_RTT_BSP :
4756 - " stm32/stm32f412-st-nucleo"
48- - RTT_BSP : " RTduino/Arduino Libraries (Raspberry Pico)"
57+ - RTT_BSP : " RTduino_Arduino Libraries (Raspberry Pico)"
4958 RTT_TOOL_CHAIN : " sourcery-arm"
5059 SUB_RTT_BSP :
5160 - " raspberry-pico"
52- - RTT_BSP : " others_at32_hc32_ht32 "
61+ - RTT_BSP : " at32_hc32_ht32 "
5362 RTT_TOOL_CHAIN : " sourcery-arm"
54- SUB_RTT_BSP :
55- - " qemu-vexpress-a9"
56- - " airm2m/air32f103"
57- - " acm32/acm32f0x0-nucleo"
58- - " CME_M7"
59- - " apollo2"
60- - " asm9260t"
61- - " allwinner_tina"
62- - " ft32/ft32f072xb-starter"
63- - " mini2440"
64- - " at91/at91sam9g45"
65- - " at91/at91sam9260"
66- - " wch/arm/ch32f103c8-core"
67- - " wch/arm/ch32f203r-evt"
68- - " synwit/swm320-mini"
69- - " synwit/swm341-mini"
70- - " beaglebone"
71- - " zynqmp-r5-axu4ev"
63+ SUB_RTT_BSP :
7264 - " at32/at32a403a-start"
7365 - " at32/at32a423-start"
7466 - " at32/at32f402-start"
@@ -87,30 +79,50 @@ jobs:
8779 - " at32/at32f457-start"
8880 - " at32/at32m412-start"
8981 - " at32/at32m416-start"
90- - " yichip/yc3122-pos"
9182 - " hc32/ev_hc32f4a0_lqfp176"
9283 - " hc32/ev_hc32f448_lqfp80"
9384 - " hc32/ev_hc32f460_lqfp100_v2"
9485 - " hc32/ev_hc32f472_lqfp100"
9586 - " hc32/lckfb-hc32f4a0-lqfp100"
9687 - " hc32l196"
88+ - " hc32l136"
89+ - " ht32/ht32f52352"
90+ - " ht32/ht32f12366"
91+ - " ht32/ht32f53252"
92+ - RTT_BSP : " others_ft32_mm32_acm32"
93+ RTT_TOOL_CHAIN : " sourcery-arm"
94+ SUB_RTT_BSP :
95+ - " qemu-vexpress-a9"
96+ - " airm2m/air32f103"
97+ - " acm32/acm32f0x0-nucleo"
98+ - " acm32/acm32f0x0-nucleo"
99+ - " acm32/acm32f4xx-nucleo"
100+ - " CME_M7"
101+ - " apollo2"
102+ - " asm9260t"
103+ - " allwinner_tina"
104+ - " ft32/ft32f072xb-starter"
105+ - " mini2440"
106+ - " at91/at91sam9g45"
107+ - " at91/at91sam9260"
108+ - " wch/arm/ch32f103c8-core"
109+ - " wch/arm/ch32f203r-evt"
110+ - " synwit/swm320-mini"
111+ - " synwit/swm341-mini"
112+ - " beaglebone"
113+ - " zynqmp-r5-axu4ev"
114+ - " yichip/yc3122-pos"
115+ - " yichip/yc3121-pos"
97116 - " mm32/mm32f3270-100ask-pitaya"
98117 - " mm32f327x"
99118 - " mm32f526x"
100119 - " mm32l07x"
101120 - " sam7x"
102121 - " hk32/hk32f030c8-mini"
103- - " acm32/acm32f0x0-nucleo"
104- - " acm32/acm32f4xx-nucleo"
105122 - " rm48x50"
106- - " ht32/ht32f52352"
107- - " ht32/ht32f12366"
108- - " ht32/ht32f53252"
109123 - " w60x"
110124 - " essemi/es32f0654"
111125 - " essemi/es32f365x"
112- - " hc32l136"
113- - " yichip/yc3121-pos"
114126 - " fm33lc026"
115127 - RTT_BSP : " stm32l4"
116128 RTT_TOOL_CHAIN : " sourcery-arm"
@@ -189,6 +201,7 @@ jobs:
189201 - " stm32/stm32f767-st-nucleo"
190202 - " stm32/stm32f769-st-disco"
191203 - " stm32/stm32f723-st-disco"
204+ - " stm32/stm32g030-tiny-board"
192205 - " stm32/stm32g070-st-nucleo"
193206 - " stm32/stm32g071-st-nucleo"
194207 - " stm32/stm32g431-st-nucleo"
@@ -424,14 +437,27 @@ jobs:
424437 echo "RTT_CC=gcc" >> $GITHUB_ENV
425438 echo "export PATH=~/.env/tools/scripts:$PATH" > ~/.env/env.sh
426439
427- - name : Install Arm ToolChains
428- if : ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm' && success() }}
440+ - name : Cache GCC Arm Toolchain
441+ if : ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm'}}
442+ id : cache-gcc-arm
443+ uses : actions/cache@main
444+ with :
445+ path : /opt/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi
446+ key : ${{ runner.os }}-arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi
447+
448+ - name : Download Arm ToolChains
449+ if : ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm' && (steps.cache-gcc-arm.outputs.cache-hit != 'true') }}
450+ shell : bash
451+ run : |
452+ wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.8/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz
453+ sudo tar -xf arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz -C /opt
454+
455+ - name : Install Arm ToolChains2
456+ if : ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm'}}
429457 shell : bash
430458 run : |
431- wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.3/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
432- sudo tar xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /opt
433- /opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc --version
434- echo "RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin" >> $GITHUB_ENV
459+ /opt/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-gcc --version
460+ echo "RTT_EXEC_PATH=/opt/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_ENV
435461
436462 - name : Install LLVM-Arm ToolChains
437463 if : ${{ matrix.legs.RTT_TOOL_CHAIN == 'llvm-arm' && success() }}
@@ -519,6 +545,14 @@ jobs:
519545 source ~/.env/env.sh
520546 python tools/ci/bsp_buildings.py
521547
548+ - name : Upload output as artifact
549+ if : ${{ success() }}
550+ uses : actions/upload-artifact@main
551+ with :
552+ name : ${{ matrix.legs.RTT_BSP }}
553+ if-no-files-found : ignore
554+ path : output/
555+
522556 - name : Post failure comment
523557 if : failure()
524558 run : |
0 commit comments