compile_bsp_with_drivers.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. push:
  15. branches:
  16. - master
  17. paths-ignore:
  18. - documentation/**
  19. - '**/README.md'
  20. - '**/README_zh.md'
  21. pull_request:
  22. branches:
  23. - master
  24. paths-ignore:
  25. - documentation/**
  26. - '**/README.md'
  27. - '**/README_zh.md'
  28. permissions:
  29. contents: read # to fetch code (actions/checkout)
  30. jobs:
  31. build:
  32. runs-on: ubuntu-latest
  33. name: BSP Compilation with More Drivers
  34. steps:
  35. - uses: actions/checkout@v4
  36. - name: Set up Python
  37. uses: actions/setup-python@v3
  38. with:
  39. python-version: 3.8
  40. - name: Install Tools
  41. shell: bash
  42. run: |
  43. sudo apt-get update
  44. sudo apt-get -qq install gcc-multilib libncurses5 libncurses5-dev libncursesw5-dev scons
  45. sudo python -m pip install --upgrade pip -qq
  46. git config --global http.postBuffer 524288000
  47. git remote -v
  48. git fetch origin
  49. python -c "import tools.menuconfig; tools.menuconfig.touch_env()"
  50. - name: Install Arm ToolChains
  51. if: ${{ success() }}
  52. shell: bash
  53. run: |
  54. 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
  55. sudo tar xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /opt
  56. /opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc --version
  57. echo "RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin" >> $GITHUB_ENV
  58. - name: Bsp Scons Compile
  59. if: ${{ success() }}
  60. shell: bash
  61. run: |
  62. source ~/.env/env.sh
  63. #python tools/ci/compile_bsp_with_drivers.py