action.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. name: STM32H750-ART-Pi
  2. # Controls when the action will run. Triggers the workflow on push or pull request
  3. # events but only for the master branch
  4. on:
  5. # Runs at 16:00 UTC (BeiJing 00:00) on the 1st of every month
  6. schedule:
  7. - cron: '0 16 1 * *'
  8. push:
  9. branches:
  10. - master
  11. paths-ignore:
  12. - documentation/**
  13. - '**/README.md'
  14. - '**/README_ZH.md'
  15. pull_request:
  16. branches:
  17. - master
  18. paths-ignore:
  19. - documentation/**
  20. - '**/README.md'
  21. - '**/README_ZH.md'
  22. env:
  23. RTT_TOOL_CHAIN: "sourcery-arm"
  24. jobs:
  25. check:
  26. runs-on: ubuntu-latest
  27. name: check-yaml-format
  28. steps:
  29. - uses: actions/checkout@v2
  30. - name: Set up Python
  31. uses: actions/setup-python@master
  32. with:
  33. python-version: 3.8
  34. - name: Check yaml
  35. if: ${{ success() }}
  36. shell: bash
  37. run: |
  38. pip install rt-thread-studio
  39. python -c "from rt_thread_studio import bsp_checker;bsp_path = '.';checker = bsp_checker.BspChecker(bsp_path);checker.check();"
  40. compile:
  41. needs: [check]
  42. runs-on: ubuntu-latest
  43. name: ${{ matrix.legs.RTT_BSP }}
  44. strategy:
  45. fail-fast: false
  46. matrix:
  47. legs:
  48. - {RTT_BSP: "art_pi_blink_led"}
  49. - {RTT_BSP: "art_pi_bootloader"}
  50. - {RTT_BSP: "art_pi_lvgl"}
  51. - {RTT_BSP: "art_pi_rust"}
  52. - {RTT_BSP: "art_pi_gc0328c_camera"}
  53. - {RTT_BSP: "art_pi_net_player"}
  54. - {RTT_BSP: "art_pi_sensor485_app"}
  55. - {RTT_BSP: "art_pi_wifi"}
  56. - {RTT_BSP: "lrs007_lora_gw_driver"}
  57. - {RTT_BSP: "lrs007_lora_loopback"}
  58. - {RTT_BSP: "lrs007_lora_pkt_sniffer"}
  59. - {RTT_BSP: "lrs007_lora_radio"}
  60. - {RTT_BSP: "lrs007_lorawan_end_device"}
  61. - {RTT_BSP: "lrs007_lorawan_gateway"}
  62. - {RTT_BSP: "industry_io_gateway"}
  63. - {RTT_BSP: "art_pi_qboot"}
  64. - {RTT_BSP: "art_pi_kboot"}
  65. - {RTT_BSP: "art_pi_mcuboot"}
  66. - {RTT_BSP: "art_pi_nes"}
  67. - {RTT_BSP: "art_pi_fibocom_l610"}
  68. steps:
  69. - uses: actions/checkout@v2
  70. - name: Set up Python
  71. uses: actions/setup-python@master
  72. with:
  73. python-version: 3.8
  74. - name: Install Arm ToolChains
  75. if: ${{ success() }}
  76. shell: bash
  77. run: |
  78. wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/arm-2017q2-v6/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2
  79. sudo tar xjf gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2 -C /opt
  80. /opt/gcc-arm-none-eabi-6-2017-q2-update/bin/arm-none-eabi-gcc --version
  81. echo "RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-6-2017-q2-update/bin" >> $GITHUB_ENV
  82. - name: Install Tools
  83. if: ${{ success() }}
  84. shell: bash
  85. run: |
  86. sudo apt-get update
  87. sudo apt-get -qq install gcc-multilib libsdl2-dev scons
  88. echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV
  89. echo "RTT_CC=gcc" >> $GITHUB_ENV
  90. - name: Compile ${{ matrix.legs.RTT_BSP }}
  91. if: ${{ success() }}
  92. shell: bash
  93. env:
  94. RTT_BSP: ${{ matrix.legs.RTT_BSP }}
  95. run: |
  96. cd projects
  97. scons -C $RTT_BSP