bsp_buildings_env15x.yml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. name: RT-Thread BSP Static Build Check (Env 1.5.x)
  2. # Controls when the action will run. Triggers the workflow on push or pull request
  3. # events but only for the RT-Thread organization master branch
  4. on:
  5. # Runs at 16:00 UTC (BeiJing 00:00) every day
  6. schedule:
  7. - cron: '0 16 * * *'
  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. repository_dispatch:
  23. types:
  24. - online-pkgs-static-building-trigger-event
  25. workflow_dispatch:
  26. permissions:
  27. contents: read # to fetch code (actions/checkout)
  28. jobs:
  29. build:
  30. runs-on: ubuntu-latest
  31. name: ${{ matrix.legs.RTT_BSP }}
  32. if: github.repository_owner == 'RT-Thread'
  33. strategy:
  34. fail-fast: false
  35. matrix:
  36. legs:
  37. - RTT_BSP: "RT-Thread Online Packages (STM32F407 RT-Spark)"
  38. RTT_TOOL_CHAIN: "sourcery-arm"
  39. SUB_RTT_BSP:
  40. - "stm32/stm32f407-rt-spark"
  41. - RTT_BSP: "RTduino/Arduino Libraries (STM32F412 Nucleo)"
  42. RTT_TOOL_CHAIN: "sourcery-arm"
  43. SUB_RTT_BSP:
  44. - "stm32/stm32f412-st-nucleo"
  45. - RTT_BSP: "RTduino/Arduino Libraries (Raspberry Pico)"
  46. RTT_TOOL_CHAIN: "sourcery-arm"
  47. SUB_RTT_BSP:
  48. - "raspberry-pico"
  49. steps:
  50. - uses: actions/checkout@v4
  51. - name: Set up Python
  52. uses: actions/setup-python@v3
  53. with:
  54. python-version: 3.8
  55. - name: Install Tools
  56. shell: bash
  57. run: |
  58. wget https://raw.githubusercontent.com/RT-Thread/env/v1.5.x/install_ubuntu.sh
  59. chmod 777 install_ubuntu.sh
  60. ./install_ubuntu.sh
  61. git config --global http.postBuffer 524288000
  62. python -c "import tools.menukconfig; tools.menukconfig.touch_env()"
  63. echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV
  64. echo "RTT_CC=gcc" >> $GITHUB_ENV
  65. - name: Install Arm ToolChains
  66. if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm' && success() }}
  67. shell: bash
  68. run: |
  69. wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.3/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
  70. sudo tar xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /opt
  71. /opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc --version
  72. echo "RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin" >> $GITHUB_ENV
  73. - name: Bsp Scons Compile
  74. if: ${{ success() }}
  75. shell: bash
  76. env:
  77. RTT_BSP: ${{ matrix.legs.RTT_BSP }}
  78. RTT_TOOL_CHAIN: ${{ matrix.legs.RTT_TOOL_CHAIN }}
  79. SRTT_BSP: ${{ join(matrix.legs.SUB_RTT_BSP, ',') }}
  80. run: |
  81. source ~/.env/env.sh
  82. python tools/ci/bsp_buildings.py