2023-06-29 10:04:46 +08:00
|
|
|
#
|
|
|
|
# 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:
|
|
|
|
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:
|
2023-12-26 23:42:58 +08:00
|
|
|
- uses: actions/checkout@v4
|
2023-06-29 10:04:46 +08:00
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v3
|
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
|
|
|
|
- name: Install Tools
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2024-07-10 00:13:15 +08:00
|
|
|
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
|
|
|
|
chmod 777 install_ubuntu.sh
|
|
|
|
./install_ubuntu.sh
|
2023-06-29 10:04:46 +08:00
|
|
|
git config --global http.postBuffer 524288000
|
|
|
|
git remote -v
|
|
|
|
git fetch origin
|
2024-04-19 08:48:32 +08:00
|
|
|
python -c "import tools.menukconfig; tools.menukconfig.touch_env()"
|
2023-06-29 10:04:46 +08:00
|
|
|
|
|
|
|
- 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
|
2023-07-08 14:58:10 +08:00
|
|
|
#python tools/ci/compile_bsp_with_drivers.py
|