Skip to content

Commit b506228

Browse files
supperthomasRbb666
authored andcommitted
[action/ci] 添加cache机制,整理ci_action的一些流程,暂时去掉drivers.yml
1 parent 17d41e7 commit b506228

File tree

4 files changed

+49
-46
lines changed

4 files changed

+49
-46
lines changed

.github/workflows/bsp_buildings.yml

Lines changed: 45 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,9 @@ jobs:
4949
RTT_TOOL_CHAIN: "sourcery-arm"
5050
SUB_RTT_BSP:
5151
- "raspberry-pico"
52-
- RTT_BSP: "others_at32_hc32_ht32"
52+
- RTT_BSP: "at32_hc32_ht32"
5353
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"
54+
SUB_RTT_BSP:
7255
- "at32/at32a403a-start"
7356
- "at32/at32a423-start"
7457
- "at32/at32f402-start"
@@ -87,30 +70,50 @@ jobs:
8770
- "at32/at32f457-start"
8871
- "at32/at32m412-start"
8972
- "at32/at32m416-start"
90-
- "yichip/yc3122-pos"
9173
- "hc32/ev_hc32f4a0_lqfp176"
9274
- "hc32/ev_hc32f448_lqfp80"
9375
- "hc32/ev_hc32f460_lqfp100_v2"
9476
- "hc32/ev_hc32f472_lqfp100"
9577
- "hc32/lckfb-hc32f4a0-lqfp100"
9678
- "hc32l196"
79+
- "hc32l136"
80+
- "ht32/ht32f52352"
81+
- "ht32/ht32f12366"
82+
- "ht32/ht32f53252"
83+
- RTT_BSP: "others_ft32_mm32_acm32"
84+
RTT_TOOL_CHAIN: "sourcery-arm"
85+
SUB_RTT_BSP:
86+
- "qemu-vexpress-a9"
87+
- "airm2m/air32f103"
88+
- "acm32/acm32f0x0-nucleo"
89+
- "acm32/acm32f0x0-nucleo"
90+
- "acm32/acm32f4xx-nucleo"
91+
- "CME_M7"
92+
- "apollo2"
93+
- "asm9260t"
94+
- "allwinner_tina"
95+
- "ft32/ft32f072xb-starter"
96+
- "mini2440"
97+
- "at91/at91sam9g45"
98+
- "at91/at91sam9260"
99+
- "wch/arm/ch32f103c8-core"
100+
- "wch/arm/ch32f203r-evt"
101+
- "synwit/swm320-mini"
102+
- "synwit/swm341-mini"
103+
- "beaglebone"
104+
- "zynqmp-r5-axu4ev"
105+
- "yichip/yc3122-pos"
106+
- "yichip/yc3121-pos"
97107
- "mm32/mm32f3270-100ask-pitaya"
98108
- "mm32f327x"
99109
- "mm32f526x"
100110
- "mm32l07x"
101111
- "sam7x"
102112
- "hk32/hk32f030c8-mini"
103-
- "acm32/acm32f0x0-nucleo"
104-
- "acm32/acm32f4xx-nucleo"
105113
- "rm48x50"
106-
- "ht32/ht32f52352"
107-
- "ht32/ht32f12366"
108-
- "ht32/ht32f53252"
109114
- "w60x"
110115
- "essemi/es32f0654"
111116
- "essemi/es32f365x"
112-
- "hc32l136"
113-
- "yichip/yc3121-pos"
114117
- "fm33lc026"
115118
- RTT_BSP: "stm32l4"
116119
RTT_TOOL_CHAIN: "sourcery-arm"
@@ -424,12 +427,25 @@ jobs:
424427
echo "RTT_CC=gcc" >> $GITHUB_ENV
425428
echo "export PATH=~/.env/tools/scripts:$PATH" > ~/.env/env.sh
426429
427-
- name: Install Arm ToolChains
428-
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm' && success() }}
430+
- name: Cache GCC Arm Toolchain
431+
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm'}}
432+
id: cache-gcc-arm
433+
uses: actions/cache@main
434+
with:
435+
path: /opt/gcc-arm-none-eabi-10-2020-q4-major
436+
key: ${{ runner.os }}-arm-none-eabi-10-2020-q4-major
437+
438+
- name: Download Arm ToolChains
439+
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm' && (steps.cache-gcc-arm.outputs.cache-hit != 'true') }}
429440
shell: bash
430441
run: |
431442
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
432443
sudo tar xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /opt
444+
445+
- name: Install Arm ToolChains2
446+
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm'}}
447+
shell: bash
448+
run: |
433449
/opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc --version
434450
echo "RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin" >> $GITHUB_ENV
435451

.github/workflows/compile_bsp_with_drivers.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,7 @@ name: BSP compilation with more drivers
1313
# Controls when the action will run. Triggers the workflow on push or pull request
1414
# events but only for the master branch
1515
on:
16-
push:
17-
branches:
18-
- master
19-
paths-ignore:
20-
- documentation/**
21-
- '**/README.md'
22-
- '**/README_zh.md'
23-
pull_request:
24-
branches:
25-
- master
26-
paths-ignore:
27-
- documentation/**
28-
- '**/README.md'
29-
- '**/README_zh.md'
16+
workflow_dispatch: #disable
3017

3118
permissions:
3219
contents: read # to fetch code (actions/checkout)

.github/workflows/format_check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
name: Scan code format and license
1616
if: github.repository_owner == 'RT-Thread'
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@main
1919
- name: Set up Python
20-
uses: actions/setup-python@v3
20+
uses: actions/setup-python@main
2121
with:
2222
python-version: 3.8
2323

.github/workflows/static_code_analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
name: Static code analysis
2626
if: github.repository_owner == 'RT-Thread'
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@main
2929
- name: Set up Python
3030
uses: actions/setup-python@main
3131
with:

0 commit comments

Comments
 (0)