mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-05 15:23:03 +08:00
Some checks failed
ToolsCI / Tools (push) Has been cancelled
pkgs_test / change (push) Has been cancelled
utest_auto_run / A9 :components/dfs.cfg (push) Has been cancelled
utest_auto_run / A9 :components/lwip.cfg (push) Has been cancelled
utest_auto_run / A9 :components/netdev.cfg (push) Has been cancelled
utest_auto_run / A9 :components/sal.cfg (push) Has been cancelled
utest_auto_run / A9 :cpp11/cpp11.cfg (push) Has been cancelled
utest_auto_run / AARCH64-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / A9-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / XUANTIE-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64 :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64-smp :default.cfg (push) Has been cancelled
utest_auto_run / A9 :default.cfg (push) Has been cancelled
utest_auto_run / A9-smp :default.cfg (push) Has been cancelled
utest_auto_run / RISCV :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-smp :default.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/atomic_c11.cfg (push) Has been cancelled
utest_auto_run / RISCV :kernel/atomic_c11.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/ipc.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/kernel_basic.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/mem.cfg (push) Has been cancelled
manual_scons_dist_except_STM32_all / CME_M7 (push) Has been cancelled
manual_scons_dist_except_STM32_all / ESP32_C3 (push) Has been cancelled
manual_scons_dist_except_STM32_all / Infineon/psoc6-cy8ckit-062-BLE (push) Has been cancelled
manual_scons_dist_except_STM32_all / Infineon/psoc6-cy8ckit-062-WIFI-BT (push) Has been cancelled
manual_scons_dist_except_STM32_all / Infineon/psoc6-cy8ckit-062S2-43012 (push) Has been cancelled
manual_scons_dist_except_STM32_all / Infineon/psoc6-cy8ckit-062s4 (push) Has been cancelled
manual_scons_dist_except_STM32_all / Infineon/psoc6-cy8cproto-062S3-4343W (push) Has been cancelled
manual_scons_dist_except_STM32_all / Infineon/psoc6-evaluationkit-062S2 (push) Has been cancelled
manual_scons_dist_except_STM32_all / Vango/v85xx (push) Has been cancelled
manual_scons_dist_except_STM32_all / Vango/v85xxp (push) Has been cancelled
manual_scons_dist_except_STM32_all / acm32/acm32f0x0-nucleo (push) Has been cancelled
manual_scons_dist_except_STM32_all / acm32/acm32f4xx-nucleo (push) Has been cancelled
manual_scons_dist_except_STM32_all / airm2m/air32f103 (push) Has been cancelled
manual_scons_dist_except_STM32_all / allwinner_tina (push) Has been cancelled
manual_scons_dist_except_STM32_all / apm32/apm32e103ze-evalboard (push) Has been cancelled
manual_scons_dist_except_STM32_all / apm32/apm32e103ze-tinyboard (push) Has been cancelled
manual_scons_dist_except_STM32_all / apm32/apm32f030r8-miniboard (push) Has been cancelled
manual_scons_dist_except_STM32_all / apm32/apm32f051r8-evalboard (push) Has been cancelled
manual_scons_dist_except_STM32_all / apm32/apm32f072vb-miniboard (push) Has been cancelled
manual_scons_dist_except_STM32_all / apm32/apm32f091vc-miniboard (push) Has been cancelled
manual_scons_dist_except_STM32_all / apm32/apm32f103vb-miniboard (push) Has been cancelled
manual_scons_dist_except_STM32_all / apm32/apm32f103xe-minibroard (push) Has been cancelled
manual_scons_dist_except_STM32_all / apm32/apm32f107vc-evalboard (push) Has been cancelled
manual_scons_dist_except_STM32_all / apm32/apm32f407ig-minibroard (push) Has been cancelled
manual_scons_dist_except_STM32_all / apm32/apm32f407zg-evalboard (push) Has been cancelled
manual_scons_dist_except_STM32_all / apm32/apm32s103vb-miniboard (push) Has been cancelled
manual_scons_dist_except_STM32_all / apollo2 (push) Has been cancelled
manual_scons_dist_except_STM32_all / asm9260t (push) Has been cancelled
manual_scons_dist_except_STM32_all / at32/at32f403a-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / at32/at32f407-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / at32/at32f413-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / at32/at32f415-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / at32/at32f421-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / at32/at32f423-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / at32/at32f425-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / at32/at32f435-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / at32/at32f437-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / at91/at91sam9260 (push) Has been cancelled
manual_scons_dist_except_STM32_all / at91/at91sam9g45 (push) Has been cancelled
manual_scons_dist_except_STM32_all / beaglebone (push) Has been cancelled
manual_scons_dist_except_STM32_all / bluetrum/ab32vg1-ab-prougen (push) Has been cancelled
manual_scons_dist_except_STM32_all / bm3803 (push) Has been cancelled
manual_scons_dist_except_STM32_all / bouffalo_lab/bl60x (push) Has been cancelled
manual_scons_dist_except_STM32_all / bouffalo_lab/bl70x (push) Has been cancelled
manual_scons_dist_except_STM32_all / dm365 (push) Has been cancelled
manual_scons_dist_except_STM32_all / efm32 (push) Has been cancelled
manual_scons_dist_except_STM32_all / essemi/es32f0654 (push) Has been cancelled
manual_scons_dist_except_STM32_all / essemi/es32f365x (push) Has been cancelled
manual_scons_dist_except_STM32_all / essemi/es32f369x (push) Has been cancelled
manual_scons_dist_except_STM32_all / essemi/es32vf2264 (push) Has been cancelled
manual_scons_dist_except_STM32_all / fm33lc026 (push) Has been cancelled
manual_scons_dist_except_STM32_all / frdm-k64f (push) Has been cancelled
manual_scons_dist_except_STM32_all / ft32/ft32f072xb-starter (push) Has been cancelled
manual_scons_dist_except_STM32_all / fujitsu/mb9x/mb9bf500r (push) Has been cancelled
manual_scons_dist_except_STM32_all / fujitsu/mb9x/mb9bf506r (push) Has been cancelled
manual_scons_dist_except_STM32_all / fujitsu/mb9x/mb9bf568r (push) Has been cancelled
manual_scons_dist_except_STM32_all / fujitsu/mb9x/mb9bf618s (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/arm/gd32103c-eval (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/arm/gd32105c-eval (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/arm/gd32105r-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/arm/gd32107c-eval (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/arm/gd32205r-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/arm/gd32207i-eval (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/arm/gd32303c-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/arm/gd32303e-eval (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/arm/gd32305r-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/arm/gd32307e-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/arm/gd32407v-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/arm/gd32450z-eval (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/arm/gd32470z-lckfb (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/risc-v/gd32vf103r-start (push) Has been cancelled
manual_scons_dist_except_STM32_all / gd32/risc-v/gd32vf103v-eval (push) Has been cancelled
manual_scons_dist_except_STM32_all / hc32/ev_hc32f460_lqfp100_v2 (push) Has been cancelled
manual_scons_dist_except_STM32_all / hc32/ev_hc32f4a0_lqfp176 (push) Has been cancelled
manual_scons_dist_except_STM32_all / hc32l136 (push) Has been cancelled
manual_scons_dist_except_STM32_all / hc32l196 (push) Has been cancelled
manual_scons_dist_except_STM32_all / hifive1 (push) Has been cancelled
manual_scons_dist_except_STM32_all / hpmicro/hpm6750evk (push) Has been cancelled
manual_scons_dist_except_STM32_all / hpmicro/hpm6750evkmini (push) Has been cancelled
manual_scons_dist_except_STM32_all / ht32/ht32f12366 (push) Has been cancelled
manual_scons_dist_except_STM32_all / ht32/ht32f52352 (push) Has been cancelled
manual_scons_dist_except_STM32_all / imx6sx/cortex-a9 (push) Has been cancelled
manual_scons_dist_except_STM32_all / imx6ul (push) Has been cancelled
manual_scons_dist_except_STM32_all / imxrt/imxrt1021-nxp-evk (push) Has been cancelled
manual_scons_dist_except_STM32_all / imxrt/imxrt1052-atk-commander (push) Has been cancelled
manual_scons_dist_except_STM32_all / imxrt/imxrt1052-fire-pro (push) Has been cancelled
manual_scons_dist_except_STM32_all / imxrt/imxrt1052-nxp-evk (push) Has been cancelled
manual_scons_dist_except_STM32_all / imxrt/imxrt1052-seeed-ArchMix (push) Has been cancelled
manual_scons_dist_except_STM32_all / imxrt/imxrt1060-nxp-evk (push) Has been cancelled
manual_scons_dist_except_STM32_all / imxrt/imxrt1061-forlinx-OK1061-S (push) Has been cancelled
manual_scons_dist_except_STM32_all / imxrt/imxrt1064-nxp-evk (push) Has been cancelled
manual_scons_dist_except_STM32_all / imxrt/imxrt1170-nxp-evk/m7 (push) Has been cancelled
manual_scons_dist_except_STM32_all / k210 (push) Has been cancelled
manual_scons_dist_except_STM32_all / lm3s8962 (push) Has been cancelled
manual_scons_dist_except_STM32_all / lm3s9b9x (push) Has been cancelled
manual_scons_dist_except_STM32_all / lm4f232 (push) Has been cancelled
manual_scons_dist_except_STM32_all / loongson/ls1bdev (push) Has been cancelled
manual_scons_dist_except_STM32_all / loongson/ls1cdev (push) Has been cancelled
manual_scons_dist_except_STM32_all / loongson/ls2kdev (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc1114 (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc176x (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc178x (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc2148 (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc2478 (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc408x (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc5410x (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc54114-lite (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc54608-LPCXpresso (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc55sxx/lpc55s06_nxp_evk (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc55sxx/lpc55s16_nxp_evk (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc55sxx/lpc55s28_nxp_evk (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc55sxx/lpc55s36_nxp_evk (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc55sxx/lpc55s69_nxp_evk (push) Has been cancelled
manual_scons_dist_except_STM32_all / lpc824 (push) Has been cancelled
manual_scons_dist_except_STM32_all / maxim/max32660-evsys (push) Has been cancelled
manual_scons_dist_except_STM32_all / mcx/mcxa/frdm-mcxa153 (push) Has been cancelled
manual_scons_dist_except_STM32_all / mcx/mcxa/frdm-mcxn947 (push) Has been cancelled
manual_scons_dist_except_STM32_all / mcx/mcxc/frdm-mcxc444 (push) Has been cancelled
manual_scons_dist_except_STM32_all / mcx/mcxn/frdm-mcxn236 (push) Has been cancelled
manual_scons_dist_except_STM32_all / microchip/samc21 (push) Has been cancelled
manual_scons_dist_except_STM32_all / microchip/same54 (push) Has been cancelled
manual_scons_dist_except_STM32_all / microchip/same70 (push) Has been cancelled
manual_scons_dist_except_STM32_all / microchip/saml10 (push) Has been cancelled
manual_scons_dist_except_STM32_all / mini2440 (push) Has been cancelled
manual_scons_dist_except_STM32_all / mipssim (push) Has been cancelled
manual_scons_dist_except_STM32_all / mm32/mm32f3270-100ask-pitaya (push) Has been cancelled
manual_scons_dist_except_STM32_all / mm32f103x (push) Has been cancelled
manual_scons_dist_except_STM32_all / mm32l07x (push) Has been cancelled
manual_scons_dist_except_STM32_all / mm32l3xx (push) Has been cancelled
manual_scons_dist_except_STM32_all / n32/n32g43xcl-stb (push) Has been cancelled
manual_scons_dist_except_STM32_all / n32/n32g457qel-stb (push) Has been cancelled
manual_scons_dist_except_STM32_all / n32/n32g45xcl-stb (push) Has been cancelled
manual_scons_dist_except_STM32_all / n32/n32g45xml-stb (push) Has been cancelled
manual_scons_dist_except_STM32_all / n32/n32g45xrl-stb (push) Has been cancelled
manual_scons_dist_except_STM32_all / n32/n32g45xvl-stb (push) Has been cancelled
manual_scons_dist_except_STM32_all / n32/n32g4frml-stb (push) Has been cancelled
manual_scons_dist_except_STM32_all / n32/n32l40xcl-stb (push) Has been cancelled
manual_scons_dist_except_STM32_all / n32/n32l436-evb (push) Has been cancelled
manual_scons_dist_except_STM32_all / n32/n32l43xml-stb (push) Has been cancelled
manual_scons_dist_except_STM32_all / n32/n32l43xrl-stb (push) Has been cancelled
manual_scons_dist_except_STM32_all / n32/n32wb45xl-evb (push) Has been cancelled
manual_scons_dist_except_STM32_all / n32g452xx/n32g452xx-mini-system (push) Has been cancelled
manual_scons_dist_except_STM32_all / nrf5x/nrf51822 (push) Has been cancelled
manual_scons_dist_except_STM32_all / nrf5x/nrf52832 (push) Has been cancelled
manual_scons_dist_except_STM32_all / nrf5x/nrf52833 (push) Has been cancelled
manual_scons_dist_except_STM32_all / nrf5x/nrf52840 (push) Has been cancelled
manual_scons_dist_except_STM32_all / nrf5x/nrf5340 (push) Has been cancelled
manual_scons_dist_except_STM32_all / nuclei/gd32vf103_rvstar (push) Has been cancelled
manual_scons_dist_except_STM32_all / nuvoton/ma35-rtp (push) Has been cancelled
manual_scons_dist_except_STM32_all / nuvoton/nk-980iot (push) Has been cancelled
manual_scons_dist_except_STM32_all / nuvoton/nk-n9h30 (push) Has been cancelled
manual_scons_dist_except_STM32_all / nuvoton/nk-rtu980 (push) Has been cancelled
manual_scons_dist_except_STM32_all / nuvoton/numaker-hmi-ma35d1 (push) Has been cancelled
manual_scons_dist_except_STM32_all / nuvoton/numaker-iot-m467 (push) Has been cancelled
manual_scons_dist_except_STM32_all / nuvoton/numaker-iot-m487 (push) Has been cancelled
manual_scons_dist_except_STM32_all / nuvoton/numaker-iot-ma35d1 (push) Has been cancelled
manual_scons_dist_except_STM32_all / nuvoton/numaker-m032ki (push) Has been cancelled
manual_scons_dist_except_STM32_all / nuvoton/numaker-m2354 (push) Has been cancelled
manual_scons_dist_except_STM32_all / nuvoton/numaker-m467hj (push) Has been cancelled
manual_scons_dist_except_STM32_all / nuvoton/numaker-pfm-m487 (push) Has been cancelled
manual_scons_dist_except_STM32_all / phytium/aarch64 (push) Has been cancelled
manual_scons_dist_except_STM32_all / qemu-vexpress-a9 (push) Has been cancelled
manual_scons_dist_except_STM32_all / qemu-virt64-aarch64 (push) Has been cancelled
manual_scons_dist_except_STM32_all / qemu-virt64-riscv (push) Has been cancelled
manual_scons_dist_except_STM32_all / raspberry-pi/raspi3-32 (push) Has been cancelled
manual_scons_dist_except_STM32_all / raspberry-pi/raspi3-64 (push) Has been cancelled
manual_scons_dist_except_STM32_all / raspberry-pi/raspi4-32 (push) Has been cancelled
manual_scons_dist_except_STM32_all / raspberry-pi/raspi4-64 (push) Has been cancelled
manual_scons_dist_except_STM32_all / raspberry-pico (push) Has been cancelled
manual_scons_dist_except_STM32_all / renesas/ebf_qi_min_6m5 (push) Has been cancelled
manual_scons_dist_except_STM32_all / renesas/ra2l1-cpk (push) Has been cancelled
manual_scons_dist_except_STM32_all / renesas/ra4m2-eco (push) Has been cancelled
manual_scons_dist_except_STM32_all / renesas/ra6m3-ek (push) Has been cancelled
manual_scons_dist_except_STM32_all / renesas/ra6m3-hmi-board (push) Has been cancelled
manual_scons_dist_except_STM32_all / renesas/ra6m4-cpk (push) Has been cancelled
manual_scons_dist_except_STM32_all / renesas/ra6m4-iot (push) Has been cancelled
manual_scons_dist_except_STM32_all / renesas/ra8d1-ek (push) Has been cancelled
manual_scons_dist_except_STM32_all / renesas/ra8m1-ek (push) Has been cancelled
manual_scons_dist_except_STM32_all / rm48x50 (push) Has been cancelled
manual_scons_dist_except_STM32_all / rockchip/rk3568 (push) Has been cancelled
manual_scons_dist_except_STM32_all / sam7x (push) Has been cancelled
manual_scons_dist_except_STM32_all / simulator (push) Has been cancelled
manual_scons_dist_except_STM32_all / smartfusion2 (push) Has been cancelled
manual_scons_dist_except_STM32_all / sparkfun-redv (push) Has been cancelled
manual_scons_dist_except_STM32_all / synwit/swm320-mini (push) Has been cancelled
manual_scons_dist_except_STM32_all / synwit/swm341-mini (push) Has been cancelled
manual_scons_dist_except_STM32_all / tm4c123bsp (push) Has been cancelled
manual_scons_dist_except_STM32_all / tm4c129x (push) Has been cancelled
manual_scons_dist_except_STM32_all / w60x (push) Has been cancelled
manual_scons_dist_except_STM32_all / wch/arm/ch32f103c8-core (push) Has been cancelled
manual_scons_dist_except_STM32_all / wch/arm/ch32f203r-evt (push) Has been cancelled
manual_scons_dist_except_STM32_all / wch/risc-v/ch32v208w-r0 (push) Has been cancelled
manual_scons_dist_except_STM32_all / wch/risc-v/ch32v307v-r1 (push) Has been cancelled
manual_scons_dist_except_STM32_all / xplorer4330/M4 (push) Has been cancelled
manual_scons_dist_except_STM32_all / yichip/yc3121-pos (push) Has been cancelled
manual_scons_dist_except_STM32_all / yichip/yc3122-pos (push) Has been cancelled
manual_scons_dist_except_STM32_all / zynqmp-r5-axu4ev (push) Has been cancelled
Weekly CI Scheduler / Trigger and Monitor CIs (push) Has been cancelled
Weekly CI Scheduler / Create Discussion Report (push) Has been cancelled
309 lines
14 KiB
YAML
309 lines
14 KiB
YAML
#
|
||
# Copyright (c) 2025, RT-Thread Development Team
|
||
#
|
||
# SPDX-License-Identifier: Apache-2.0
|
||
#
|
||
# Change Logs:
|
||
# Date Author Notes
|
||
# 2025-03-22 Supperthomas 添加upload 上传编译固件
|
||
# 2025-03-31 Hydevcode 将需要编译的bsp列表分离,根据修改的文件对相应的bsp编译
|
||
|
||
name: RT-Thread BSP Static Build Check
|
||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request
|
||
# events but only for the RT-Thread organization master branch
|
||
on:
|
||
push:
|
||
branches:
|
||
- master
|
||
paths-ignore:
|
||
- .github/**
|
||
- .gitee/**
|
||
- .hook/**
|
||
- documentation/**
|
||
- examples/**
|
||
- '**/README.md'
|
||
- '**/README_zh.md'
|
||
- ChangeLog.md
|
||
- MAINTAINERS
|
||
pull_request:
|
||
branches:
|
||
- master
|
||
paths-ignore:
|
||
- .github/**
|
||
- .gitee/**
|
||
- .hook/**
|
||
- documentation/**
|
||
- examples/**
|
||
- '**/README.md'
|
||
- '**/README_zh.md'
|
||
- ChangeLog.md
|
||
- MAINTAINERS
|
||
repository_dispatch:
|
||
types:
|
||
- online-pkgs-static-building-trigger-event
|
||
workflow_dispatch:
|
||
inputs:
|
||
trigger_type:
|
||
description: '触发类型'
|
||
required: false
|
||
default: 'manual'
|
||
type: string
|
||
|
||
concurrency:
|
||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||
cancel-in-progress: true
|
||
|
||
permissions:
|
||
contents: read # to fetch code (actions/checkout)
|
||
|
||
jobs:
|
||
generate-matrix:
|
||
runs-on: ubuntu-22.04
|
||
name: 🔍 Summary of Git Diff Changes
|
||
outputs:
|
||
filtered_matrix: ${{ steps.filter.outputs.filtered_matrix }}
|
||
steps:
|
||
- name: Checkout repo
|
||
uses: actions/checkout@main
|
||
with:
|
||
persist-credentials: false
|
||
fetch-depth: 0
|
||
- name: Filter matrix
|
||
id: filter
|
||
run: |
|
||
git config --global http.postBuffer 524288000
|
||
git remote -v
|
||
git fetch origin
|
||
git branch
|
||
git branch -a
|
||
python tools/ci/git_diff_show.py origin/master
|
||
raw_matrix=$(cat .github/ALL_BSP_COMPILE_TEMP.json)
|
||
|
||
FILTER_CONDITION='.legs[]'
|
||
filtered_matrix=$(jq -c "{legs: [$FILTER_CONDITION]}" <<< "$raw_matrix")
|
||
echo "filtered_matrix=${filtered_matrix}" >> $GITHUB_OUTPUT
|
||
echo ${filtered_matrix}
|
||
build:
|
||
runs-on: ubuntu-22.04
|
||
needs: generate-matrix
|
||
name: ${{ matrix.legs.RTT_BSP }}
|
||
if: github.repository_owner == 'RT-Thread'
|
||
strategy:
|
||
fail-fast: false
|
||
matrix: ${{ fromJson(needs.generate-matrix.outputs.filtered_matrix) }}
|
||
steps:
|
||
- uses: actions/checkout@main
|
||
- name: Set up Python
|
||
uses: actions/setup-python@main
|
||
with:
|
||
python-version: 3.8
|
||
- name: Install Tools
|
||
shell: bash
|
||
run: |
|
||
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
|
||
chmod 777 install_ubuntu.sh
|
||
./install_ubuntu.sh
|
||
pip install -r tools/requirements.txt
|
||
git config --global http.postBuffer 524288000
|
||
echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV
|
||
echo "RTT_CC=gcc" >> $GITHUB_ENV
|
||
echo "export PATH=~/.env/tools/scripts:$PATH" > ~/.env/env.sh
|
||
|
||
- name: Cache GCC Arm Toolchain
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm'}}
|
||
id: cache-gcc-arm
|
||
uses: actions/cache@main
|
||
with:
|
||
path: /opt/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi
|
||
key: ${{ runner.os }}-arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi
|
||
|
||
- name: Download Arm ToolChains
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm' && (steps.cache-gcc-arm.outputs.cache-hit != 'true') }}
|
||
shell: bash
|
||
run: |
|
||
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
|
||
sudo tar -xf arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz -C /opt
|
||
|
||
- name: Install Arm ToolChains2
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm'}}
|
||
shell: bash
|
||
run: |
|
||
/opt/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-gcc --version
|
||
echo "RTT_EXEC_PATH=/opt/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_ENV
|
||
|
||
- name: Install LLVM-Arm ToolChains
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'llvm-arm' && success() }}
|
||
shell: bash
|
||
run: |
|
||
wget -q https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/download/release-16.0.0/LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64.tar.gz
|
||
sudo tar zxf LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64.tar.gz -C /opt
|
||
sudo apt-get -qq install libncurses5 libncurses5-dev libncursesw5-dev
|
||
/opt/LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64/bin/clang --version
|
||
echo "RTT_CC=llvm-arm" >> $GITHUB_ENV
|
||
echo "RTT_EXEC_PATH=/opt/LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64/bin" >> $GITHUB_ENV
|
||
|
||
- name: Install AArch64 ToolChains
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-aarch64' && success() }}
|
||
shell: bash
|
||
run: |
|
||
wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.6/gcc-arm-10.2-2020.11-x86_64-aarch64-none-elf.tar.xz
|
||
sudo tar -xf gcc-arm-10.2-2020.11-x86_64-aarch64-none-elf.tar.xz -C /opt
|
||
/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gcc --version
|
||
echo "RTT_EXEC_PATH=/opt/gcc-arm-10.2-2020.11-x86_64-aarch64-none-elf/bin" >> $GITHUB_ENV
|
||
|
||
- name: Install Mips ToolChains
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-mips' && success() }}
|
||
shell: bash
|
||
run: |
|
||
wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.1/mips-2016.05-7-mips-sde-elf-i686-pc-linux-gnu.tar.bz2
|
||
sudo tar xjf mips-2016.05-7-mips-sde-elf-i686-pc-linux-gnu.tar.bz2 -C /opt
|
||
/opt/mips-2016.05/bin/mips-sde-elf-gcc --version
|
||
echo "RTT_EXEC_PATH=/opt/mips-2016.05/bin" >> $GITHUB_ENV
|
||
|
||
- name: Install Riscv64-unknown-elf ToolChains
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-riscv64-unknown-elf' && success() }}
|
||
run: |
|
||
wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.4/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz
|
||
sudo tar zxf riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz -C /opt
|
||
/opt/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin/riscv64-unknown-elf-gcc --version
|
||
echo "RTT_EXEC_PATH=/opt/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin" >> $GITHUB_ENV
|
||
|
||
- name: Install Riscv64 rt-thread smart general toolchain
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-riscv64-general-toolchain' && success() }}
|
||
run: |
|
||
wget -q https://github.com/RT-Thread/rt-thread/releases/download/v5.2.0/riscv64gc-linux-musleabi_for_x86_64-pc-linux-gnu_252938-345d8b6e45.tar.bz2
|
||
sudo tar xjf riscv64gc-linux-musleabi_for_x86_64-pc-linux-gnu_252938-345d8b6e45.tar.bz2 -C /opt
|
||
/opt/riscv64gc-linux-musleabi_for_x86_64-pc-linux-gnu/bin/riscv64-unknown-linux-musl-gcc --version
|
||
echo "RTT_EXEC_PATH=/opt/riscv64gc-linux-musleabi_for_x86_64-pc-linux-gnu/bin" >> $GITHUB_ENV
|
||
|
||
- name: Install Xuantie-900-gcc-elf-newlib Tools
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-Xuantie-900-gcc-elf-newlib' && success() }}
|
||
run: |
|
||
wget -q https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource//1751370399722/Xuantie-900-gcc-elf-newlib-x86_64-V3.2.0-20250627.tar.gz
|
||
sudo tar -zxvf Xuantie-900-gcc-elf-newlib-x86_64-V3.2.0-20250627.tar.gz -C /opt
|
||
/opt/Xuantie-900-gcc-elf-newlib-x86_64-V3.2.0/bin/riscv64-unknown-elf-gcc --version
|
||
echo "RTT_EXEC_PATH=/opt/Xuantie-900-gcc-elf-newlib-x86_64-V3.2.0/bin" >> $GITHUB_ENV
|
||
|
||
- name: Install Xuantie-900-gcc-linux-musl Tools
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-Xuantie-900-gcc-linux-musl' && success() }}
|
||
run: |
|
||
wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.9/Xuantie-900-gcc-linux-6.6.0-musl64-x86_64-V3.0.2.tar.gz
|
||
sudo tar -zxvf Xuantie-900-gcc-linux-6.6.0-musl64-x86_64-V3.0.2.tar.gz -C /opt
|
||
/opt/Xuantie-900-gcc-linux-6.6.0-musl64-x86_64-V3.0.2/bin/riscv64-unknown-linux-musl-gcc --version
|
||
echo "RTT_EXEC_PATH=/opt/Xuantie-900-gcc-linux-6.6.0-musl64-x86_64-V3.0.2/bin" >> $GITHUB_ENV
|
||
echo "RTT_CC_PREFIX=riscv64-unknown-linux-musl-" >> $GITHUB_ENV
|
||
|
||
- name: Install k230 MUSL ToolChains
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'riscv64-unknown-linux-musl-' && matrix.legs.RTT_BSP == 'K230' && success() }}
|
||
run: |
|
||
wget -q https://download.rt-thread.org/rt-smart/riscv64/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu_251248.tar.bz2
|
||
sudo tar xjf riscv64-linux-musleabi_for_x86_64-pc-linux-gnu_251248.tar.bz2 -C /opt
|
||
/opt/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu/bin/riscv64-unknown-linux-musl-gcc --version
|
||
echo "RTT_EXEC_PATH=/opt/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu/bin" >> $GITHUB_ENV
|
||
|
||
- name: Install riscv32-unknown-elf Toolchains
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'RISC-V-GCC-RV32' && success() }}
|
||
run: |
|
||
wget -q https://github.com/hpmicro/riscv-gnu-toolchain/releases/download/2022.05.15/riscv32-unknown-elf-newlib-multilib_2022.05.15_linux.tar.gz
|
||
sudo tar zxf riscv32-unknown-elf-newlib-multilib_2022.05.15_linux.tar.gz -C /opt
|
||
/opt/riscv32-unknown-elf-newlib-multilib/bin/riscv32-unknown-elf-gcc --version
|
||
echo "RTT_EXEC_PATH=/opt/riscv32-unknown-elf-newlib-multilib/bin/" >> $GITHUB_ENV
|
||
|
||
- name: Install Riscv-none-embed ToolChains
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-riscv-none-embed' && success() }}
|
||
run: |
|
||
wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.5/xpack-riscv-none-embed-gcc-8.3.0-2.3-linux-x64.tar.gz
|
||
sudo tar zxf xpack-riscv-none-embed-gcc-8.3.0-2.3-linux-x64.tar.gz -C /opt
|
||
/opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin/riscv-none-embed-gcc --version
|
||
echo "RTT_EXEC_PATH=/opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin" >> $GITHUB_ENV
|
||
|
||
- name: Install riscv32-esp-elf ToolChains
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-riscv32-esp32' && success() }}
|
||
run: |
|
||
wget -q https://github.com/espressif/crosstool-NG/releases/download/esp-2022r1-RC1/riscv32-esp-elf-gcc11_2_0-esp-2022r1-RC1-linux-amd64.tar.xz
|
||
sudo tar xf riscv32-esp-elf-gcc11_2_0-esp-2022r1-RC1-linux-amd64.tar.xz -C /opt
|
||
/opt/riscv32-esp-elf/bin/riscv32-esp-elf-gcc --version
|
||
pip3 install esptool
|
||
echo "RTT_EXEC_PATH=/opt/riscv32-esp-elf/bin" >> $GITHUB_ENV
|
||
|
||
- name: Install Arm Musl ToolChains
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm' && matrix.legs.RTT_SMART_TOOL_CHAIN == 'arm-linux-musleabi' && success() }}
|
||
shell: bash
|
||
run: |
|
||
wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.7/arm-linux-musleabi_for_x86_64-pc-linux-gnu_stable.tar.bz2
|
||
sudo tar xjf arm-linux-musleabi_for_x86_64-pc-linux-gnu_stable.tar.bz2 -C /opt
|
||
/opt/arm-linux-musleabi_for_x86_64-pc-linux-gnu/bin/arm-linux-musleabi-gcc --version
|
||
echo "RTT_EXEC_PATH=/opt/arm-linux-musleabi_for_x86_64-pc-linux-gnu/bin" >> $GITHUB_ENV
|
||
echo "RTT_CC_PREFIX=arm-linux-musleabi-" >> $GITHUB_ENV
|
||
|
||
- name: Install Simulator Tools
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'gcc' && success() }}
|
||
run: |
|
||
sudo apt-get -qq install libsdl2-dev
|
||
|
||
- name: Install i386-unknown-elf Tools
|
||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-i386-unknown-elf' && success() }}
|
||
run: |
|
||
wget -q https://github.com/zhkag/toolchains/releases/download/i386-unknown/i386-unknown-elf_for_x86_64-pc-linux-gnu_latest.tar.bz2
|
||
sudo tar -jxvf i386-unknown-elf_for_x86_64-pc-linux-gnu_latest.tar.bz2 -C /opt
|
||
/opt/i386-unknown-elf_for_x86_64-pc-linux-gnu/bin/i386-unknown-elf-gcc --version
|
||
echo "RTT_EXEC_PATH=/opt/i386-unknown-elf_for_x86_64-pc-linux-gnu/bin" >> $GITHUB_ENV
|
||
|
||
- name: Bsp Scons Compile
|
||
if: ${{ success() }}
|
||
shell: bash
|
||
env:
|
||
RTT_BSP: ${{ matrix.legs.RTT_BSP }}
|
||
RTT_TOOL_CHAIN: ${{ matrix.legs.RTT_TOOL_CHAIN }}
|
||
SRTT_BSP: ${{ join(matrix.legs.SUB_RTT_BSP, ',') }}
|
||
run: |
|
||
source ~/.env/env.sh
|
||
python tools/ci/bsp_buildings.py
|
||
|
||
- name: Upload output as artifact
|
||
if: ${{ success() }}
|
||
uses: actions/upload-artifact@main
|
||
with:
|
||
name: ${{ matrix.legs.RTT_BSP }}
|
||
if-no-files-found: ignore
|
||
path: output/
|
||
|
||
- name: Post failure comment
|
||
if: failure()
|
||
run: |
|
||
curl -X POST -H "Authorization: token ${{ secrets.RTTHREAD_GITHUB_TOKEN }}" \
|
||
-d '{"body":"@${{ github.actor }}, Thank you for your contribution, but there was an error with the action. Could you please help check the BSP compilation issue? Thank you."}' \
|
||
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"
|
||
# 整合所有的output为一个文件夹
|
||
collect-artifacts:
|
||
needs: build
|
||
runs-on: ubuntu-latest
|
||
if: github.event_name != 'pull_request' #排除Pull request
|
||
steps:
|
||
#这里会下载所有产物
|
||
- name: Download all artifacts
|
||
uses: actions/download-artifact@main
|
||
with:
|
||
path: output/
|
||
merge-multiple: true
|
||
- run: ls -R output/
|
||
|
||
- name: Upload combined output as artifact
|
||
uses: actions/upload-artifact@main
|
||
with:
|
||
name: 00_all_bsp_output_${{ github.sha }}
|
||
path: output/
|
||
|
||
# # Post CI status to PR comment
|
||
# post-ci-status:
|
||
# needs: build
|
||
# if: always() && github.event_name == 'pull_request' && github.repository_owner == 'RT-Thread'
|
||
# uses: ./.github/workflows/post_ci_status.yml
|
||
# with:
|
||
# workflow_name: "RT-Thread BSP Static Build Check"
|
||
# workflow_status: ${{ needs.build.result }}
|
||
# pr_number: ${{ github.event.pull_request.number }}
|
||
# permissions:
|
||
# pull-requests: write
|
||
# issues: write |