[simulator] 添加 simulator in Linux ci (#7664)

This commit is contained in:
zhkag 2023-06-14 01:05:56 +08:00 committed by GitHub
parent 446fdf1329
commit aa4aeedb74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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