compile_bsp_with_drivers.yml 1.7 KB

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