File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed
Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ToolsCI
2+ # 这个CI用来检查menuconfig中的warning和错误
3+ on :
4+ # Runs at 16:00 UTC (BeiJing 00:00) on the 1st of every month
5+ schedule :
6+ - cron : ' 0 16 1 * *'
7+ push :
8+ branches :
9+ - master
10+ pull_request :
11+ branches :
12+ - master
13+ workflow_dispatch :
14+
15+ permissions :
16+ contents : read # to fetch code (actions/checkout)
17+
18+ jobs :
19+ test :
20+ runs-on : ubuntu-22.04
21+ name : Tools
22+ if : github.repository_owner == 'RT-Thread'
23+ strategy :
24+ fail-fast : false
25+ env :
26+ TEST_BSP_ROOT : bsp/stm32/stm32f407-atk-explorer
27+ steps :
28+ - uses : actions/checkout@main
29+ with :
30+ repository : RT-Thread/rt-thread
31+
32+ - name : Install Tools
33+ shell : bash
34+ run : |
35+ wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
36+ chmod 777 install_ubuntu.sh
37+ ./install_ubuntu.sh
38+
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 : Checkout packages
48+ uses : actions/checkout@main
49+ with :
50+ path : packages
51+ - name : Build Tools
52+ run : |
53+ cp packages/ /home/runner/.env/packages/ -rf
54+ scons --pyconfig-silent -C $TEST_BSP_ROOT 2>menuconfig.log
55+ sed 's/warning/::error::/gI' menuconfig.log > menuconfig.error.log
56+ cat menuconfig.error.log
57+ if grep -q "::error::" menuconfig.error.log; then
58+ echo "Errors found in menuconfig, failing the build."
59+ exit 1
60+ fi
61+ scons -j$(nproc) -C $TEST_BSP_ROOT
You can’t perform that action at this time.
0 commit comments