summaryrefslogtreecommitdiff
path: root/.github/workflows/action_runner.yml
blob: b8499d465141e7456baebf55124c5b1193398b65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Copyright (c) 2006-2024, RT-Thread Development Team
#
# SPDX-License-Identifier: Apache-2.0
#
# Change Logs:
# Date           Author       Notes
# 2024-07-19     supperthomas the first version
#
name:  action_runner

on:
  workflow_dispatch:
    inputs:
      bsp_options:
        description: 'Which bsp path Would you want dist in bsp?like stm32/stm32f103-blue-pill'
        required: false
        type: string
        default: 'stm32/stm32f103-blue-pill'
      bsp_tool_chain:
        description: 'Choice tool_chain'
        required: false
        default: 'KEIL'
        type: choice
        options:
          - "KEIL"
          - "IAR"
      bsp_config:
        description: 'Type a config you want mannual test in .config, like: CONFIG_RT_USING_DEBUG=y,CONFIG_RT_DEBUGING_COLOR=y,CONFIG_RT_DEBUGING_CONTEXT=y'
        required: false
        type: string
        default: 'CONFIG_RT_USING_DEBUG=y,CONFIG_RT_DEBUGING_COLOR=y,CONFIG_RT_DEBUGING_CONTEXT=y'

permissions:
  contents: read

jobs:
  build:
    runs-on: [self-hosted, windows, x64]
    name: ${{ github.event.inputs.bsp_options }}
    steps:
      - uses: actions/checkout@main
      - name: Bsp Scons Compile
        if: ${{ success() }}
        env:
          RTT_BSP: ${{ github.event.inputs.bsp_options }}
          RTT_TOOL_CHAIN: ${{ github.event.inputs.bsp_tool_chain}}
        run: |   
          ls
          echo $RTT_BSP
          cd bsp/stm32/stm32f103-blue-pill
          scons --target=mdk5
          UV4.exe -b project.uvprojx -q -j0 -t rt-thread -o action_runner.log
          ls
          sleep 10
          cat action_runner.log