compile_bsp_with_drivers.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. workflow_dispatch: #disable
  15. concurrency:
  16. group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  17. cancel-in-progress: true
  18. permissions:
  19. contents: read # to fetch code (actions/checkout)
  20. jobs:
  21. build:
  22. runs-on: ubuntu-22.04
  23. name: BSP Compilation with More Drivers
  24. steps:
  25. - uses: actions/checkout@main
  26. - name: Set up Python
  27. uses: actions/setup-python@v3
  28. with:
  29. python-version: 3.8
  30. - name: Install Tools
  31. shell: bash
  32. run: |
  33. wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
  34. chmod 777 install_ubuntu.sh
  35. ./install_ubuntu.sh
  36. git config --global http.postBuffer 524288000
  37. git remote -v
  38. git fetch origin
  39. - name: Install Arm ToolChains
  40. if: ${{ success() }}
  41. shell: bash
  42. run: |
  43. 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
  44. sudo tar xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /opt
  45. /opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc --version
  46. echo "RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin" >> $GITHUB_ENV
  47. - name: Bsp Scons Compile
  48. if: ${{ success() }}
  49. shell: bash
  50. run: |
  51. # source ~/.env/env.sh
  52. # python tools/ci/compile_bsp_with_drivers.py