summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorSupper Thomas <[email protected]>2025-03-23 12:38:27 +0800
committerGitHub <[email protected]>2025-03-23 12:38:27 +0800
commit151c7a6112ed1d29bfd5534e6525fd1263f77606 (patch)
tree9b6b79ba209f191378047b2ca6029eefe9a8684f /.github/workflows
parentcdb5ce8d04c4c0395f625af717091ea0f227007f (diff)
[action/ci] 把每次编译结果上传到github (#10135)
* [action/ci] 把每次编译结果上传到github * [fix] * add output * fix * fixthe attach_file_name * fix * fix name * [action] 更新一下toolchain的版本号 * [bsp/stm32] hex 生成 * Update type.h
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/bsp_buildings.yml33
1 files changed, 25 insertions, 8 deletions
diff --git a/.github/workflows/bsp_buildings.yml b/.github/workflows/bsp_buildings.yml
index 73a5dea700..81dddf5a80 100644
--- a/.github/workflows/bsp_buildings.yml
+++ b/.github/workflows/bsp_buildings.yml
@@ -1,3 +1,12 @@
+#
+# Copyright (c) 2025, RT-Thread Development Team
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Change Logs:
+# Date Author Notes
+# 2025-03-22 Supperthomas 添加upload 上传编译固件
+#
name: RT-Thread BSP Static Build Check
# Controls when the action will run. Triggers the workflow on push or pull request
@@ -41,11 +50,11 @@ jobs:
RTT_TOOL_CHAIN: "sourcery-arm"
SUB_RTT_BSP:
- "stm32/stm32f407-rt-spark"
- - RTT_BSP: "RTduino/Arduino Libraries (STM32F412 Nucleo)"
+ - RTT_BSP: "RTduino_Arduino Libraries (STM32F412 Nucleo)"
RTT_TOOL_CHAIN: "sourcery-arm"
SUB_RTT_BSP:
- "stm32/stm32f412-st-nucleo"
- - RTT_BSP: "RTduino/Arduino Libraries (Raspberry Pico)"
+ - RTT_BSP: "RTduino_Arduino Libraries (Raspberry Pico)"
RTT_TOOL_CHAIN: "sourcery-arm"
SUB_RTT_BSP:
- "raspberry-pico"
@@ -433,22 +442,22 @@ jobs:
id: cache-gcc-arm
uses: actions/cache@main
with:
- path: /opt/gcc-arm-none-eabi-10-2020-q4-major
- key: ${{ runner.os }}-arm-none-eabi-10-2020-q4-major
+ 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.3/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
- sudo tar xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /opt
+ 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/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc --version
- echo "RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin" >> $GITHUB_ENV
+ /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() }}
@@ -536,6 +545,14 @@ jobs:
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: |