summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorzhkag <[email protected]>2023-06-14 01:05:56 +0800
committerGitHub <[email protected]>2023-06-13 13:05:56 -0400
commitaa4aeedb745cc4cb07ad9afb76b19641f968ff28 (patch)
tree7f4a55d497d0aa76796230f55329547dbedc1ca8 /.github
parent446fdf13292603c067608463b04c2c0e361d4af1 (diff)
[simulator] 添加 simulator in Linux ci (#7664)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/action.yml10
-rw-r--r--.github/workflows/manual_dist.yml6
2 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml
index 084f1f4af0..ae1b8b3d7d 100644
--- a/.github/workflows/action.yml
+++ b/.github/workflows/action.yml
@@ -292,6 +292,11 @@ jobs:
SUB_RTT_BSP:
- "stm32/stm32l475-atk-pandora"
- "renesas/ra6m3-hmi-board"
+ - RTT_BSP: "simulator"
+ RTT_TOOL_CHAIN: "gcc"
+ SUB_RTT_BSP:
+ - "simulator"
+
steps:
- uses: actions/checkout@v3
- name: Set up Python
@@ -364,6 +369,11 @@ jobs:
/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 Simulator Tools
+ if: ${{ matrix.legs.RTT_BSP == 'simulator' && success() }}
+ run: |
+ sudo apt-get -qq install libsdl2-dev
+
- name: Bsp Scons Compile
if: ${{ success() }}
shell: bash
diff --git a/.github/workflows/manual_dist.yml b/.github/workflows/manual_dist.yml
index 359bb4f2b3..1d0526e4ea 100644
--- a/.github/workflows/manual_dist.yml
+++ b/.github/workflows/manual_dist.yml
@@ -22,6 +22,7 @@ on:
- "sourcery-mips"
- "sourcery-riscv-none-embed"
- "sourcery-riscv64-unknown-elf"
+ - "gcc"
bsp_config:
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT '
required: false
@@ -107,6 +108,11 @@ jobs:
/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 Simulator Tools
+ if: ${{ github.event.inputs.bsp_options == 'simulator' && success() }}
+ run: |
+ sudo apt-get -qq install libsdl2-dev
+
- name: Bsp Scons Compile
if: ${{ success() }}
shell: bash