action_runner.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # Copyright (c) 2006-2024, RT-Thread Development Team
  3. #
  4. # SPDX-License-Identifier: Apache-2.0
  5. #
  6. # Change Logs:
  7. # Date Author Notes
  8. # 2024-07-19 supperthomas the first version
  9. #
  10. name: action_runner
  11. on:
  12. workflow_dispatch:
  13. inputs:
  14. bsp_options:
  15. description: 'Which bsp path Would you want dist in bsp?like stm32/stm32f103-blue-pill'
  16. required: false
  17. type: string
  18. default: 'stm32/stm32f103-blue-pill'
  19. bsp_tool_chain:
  20. description: 'Choice tool_chain'
  21. required: false
  22. default: 'KEIL'
  23. type: choice
  24. options:
  25. - "KEIL"
  26. - "IAR"
  27. bsp_config:
  28. 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'
  29. required: false
  30. type: string
  31. default: 'CONFIG_RT_USING_DEBUG=y,CONFIG_RT_DEBUGING_COLOR=y,CONFIG_RT_DEBUGING_CONTEXT=y'
  32. permissions:
  33. contents: read
  34. jobs:
  35. build:
  36. runs-on: [self-hosted, windows, x64]
  37. name: ${{ github.event.inputs.bsp_options }}
  38. steps:
  39. - uses: actions/checkout@main
  40. - name: Bsp Scons Compile
  41. if: ${{ success() }}
  42. env:
  43. RTT_BSP: ${{ github.event.inputs.bsp_options }}
  44. RTT_TOOL_CHAIN: ${{ github.event.inputs.bsp_tool_chain}}
  45. run: |
  46. ls
  47. echo $RTT_BSP
  48. cd bsp/stm32/stm32f103-blue-pill
  49. scons --target=mdk5
  50. UV4.exe -b project.uvprojx -q -j0 -t rt-thread -o action_runner.log
  51. ls
  52. sleep 10
  53. cat action_runner.log