Skip to content

Commit aa4aeed

Browse files
authored
[simulator] 添加 simulator in Linux ci (#7664)
1 parent 446fdf1 commit aa4aeed

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,11 @@ jobs:
292292
SUB_RTT_BSP:
293293
- "stm32/stm32l475-atk-pandora"
294294
- "renesas/ra6m3-hmi-board"
295+
- RTT_BSP: "simulator"
296+
RTT_TOOL_CHAIN: "gcc"
297+
SUB_RTT_BSP:
298+
- "simulator"
299+
295300
steps:
296301
- uses: actions/checkout@v3
297302
- name: Set up Python
@@ -364,6 +369,11 @@ jobs:
364369
/opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin/riscv-none-embed-gcc --version
365370
echo "RTT_EXEC_PATH=/opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin" >> $GITHUB_ENV
366371
372+
- name: Install Simulator Tools
373+
if: ${{ matrix.legs.RTT_BSP == 'simulator' && success() }}
374+
run: |
375+
sudo apt-get -qq install libsdl2-dev
376+
367377
- name: Bsp Scons Compile
368378
if: ${{ success() }}
369379
shell: bash

.github/workflows/manual_dist.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222
- "sourcery-mips"
2323
- "sourcery-riscv-none-embed"
2424
- "sourcery-riscv64-unknown-elf"
25+
- "gcc"
2526
bsp_config:
2627
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT '
2728
required: false
@@ -107,6 +108,11 @@ jobs:
107108
/opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin/riscv-none-embed-gcc --version
108109
echo "RTT_EXEC_PATH=/opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin" >> $GITHUB_ENV
109110
111+
- name: Install Simulator Tools
112+
if: ${{ github.event.inputs.bsp_options == 'simulator' && success() }}
113+
run: |
114+
sudo apt-get -qq install libsdl2-dev
115+
110116
- name: Bsp Scons Compile
111117
if: ${{ success() }}
112118
shell: bash

0 commit comments

Comments
 (0)