Browse Source

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

zhkag 2 years ago
parent
commit
aa4aeedb74
2 changed files with 16 additions and 0 deletions
  1. 10 0
      .github/workflows/action.yml
  2. 6 0
      .github/workflows/manual_dist.yml

+ 10 - 0
.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

+ 6 - 0
.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