compile_bsp_with_drivers.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #
  2. # Copyright (c) 2006-2023, RT-Thread Development Team
  3. #
  4. # SPDX-License-Identifier: Apache-2.0
  5. #
  6. # Change Logs:
  7. # Date Author Notes
  8. # 2023-06-27 dejavudwh the first version
  9. #
  10. name: BSP compilation with more drivers
  11. # Controls when the action will run. Triggers the workflow on push or pull request
  12. # events but only for the master branch
  13. on:
  14. # Runs at 16:00 UTC (BeiJing 00:00) on the 1st of every month
  15. schedule:
  16. - cron: '0 16 1 * *'
  17. push:
  18. branches:
  19. - master
  20. paths-ignore:
  21. - documentation/**
  22. - '**/README.md'
  23. - '**/README_zh.md'
  24. pull_request:
  25. branches:
  26. - master
  27. paths-ignore:
  28. - documentation/**
  29. - '**/README.md'
  30. - '**/README_zh.md'
  31. permissions:
  32. contents: read # to fetch code (actions/checkout)
  33. jobs:
  34. build:
  35. runs-on: ubuntu-latest
  36. name: BSP Compilation with More Drivers
  37. steps:
  38. - uses: actions/checkout@v3
  39. - name: Set up Python
  40. uses: actions/setup-python@v3
  41. with:
  42. python-version: 3.8
  43. - name: Install Tools
  44. shell: bash
  45. run: |
  46. sudo apt-get update
  47. sudo apt-get -qq install gcc-multilib libncurses5 libncurses5-dev libncursesw5-dev scons
  48. sudo python -m pip install --upgrade pip -qq
  49. git config --global http.postBuffer 524288000
  50. git remote -v
  51. git fetch origin
  52. python -c "import tools.menuconfig; tools.menuconfig.touch_env()"
  53. - name: Install Arm ToolChains
  54. if: ${{ success() }}
  55. shell: bash
  56. run: |
  57. 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
  58. sudo tar xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /opt
  59. /opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc --version
  60. echo "RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin" >> $GITHUB_ENV
  61. - name: Bsp Scons Compile
  62. if: ${{ success() }}
  63. shell: bash
  64. run: |
  65. source ~/.env/env.sh
  66. python tools/ci/compile_bsp_with_drivers.py