From 4cbc1893bd1f5e19a09fde573c4d1f46c8e5d561 Mon Sep 17 00:00:00 2001 From: dejavudwh Date: Thu, 29 Jun 2023 10:04:46 +0800 Subject: Added CI to compile more drivers for the changed BSP --- .github/workflows/compile_bsp_with_drivers.yml | 74 ++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 .github/workflows/compile_bsp_with_drivers.yml (limited to '.github/workflows') diff --git a/.github/workflows/compile_bsp_with_drivers.yml b/.github/workflows/compile_bsp_with_drivers.yml new file mode 100644 index 0000000000..b5810b15d0 --- /dev/null +++ b/.github/workflows/compile_bsp_with_drivers.yml @@ -0,0 +1,74 @@ +# +# Copyright (c) 2006-2023, RT-Thread Development Team +# +# SPDX-License-Identifier: Apache-2.0 +# +# Change Logs: +# Date Author Notes +# 2023-06-27 dejavudwh the first version +# + +name: BSP compilation with more drivers + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + # Runs at 16:00 UTC (BeiJing 00:00) on the 1st of every month + schedule: + - cron: '0 16 1 * *' + push: + branches: + - master + paths-ignore: + - documentation/** + - '**/README.md' + - '**/README_zh.md' + pull_request: + branches: + - master + paths-ignore: + - documentation/** + - '**/README.md' + - '**/README_zh.md' + +permissions: + contents: read # to fetch code (actions/checkout) + +jobs: + build: + runs-on: ubuntu-latest + name: BSP Compilation with More Drivers + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: 3.8 + + - name: Install Tools + shell: bash + run: | + sudo apt-get update + sudo apt-get -qq install gcc-multilib libncurses5 libncurses5-dev libncursesw5-dev scons + sudo python -m pip install --upgrade pip -qq + git config --global http.postBuffer 524288000 + git remote -v + git fetch origin + python -c "import tools.menuconfig; tools.menuconfig.touch_env()" + + - name: Install Arm ToolChains + if: ${{ success() }} + shell: bash + run: | + 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 + sudo tar xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /opt + /opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc --version + echo "RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin" >> $GITHUB_ENV + + - name: Bsp Scons Compile + if: ${{ success() }} + shell: bash + run: | + source ~/.env/env.sh + python tools/ci/compile_bsp_with_drivers.py -- cgit v1.3.1