Skip to content

Commit

Permalink
Merge branch 'RT-Thread:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ComerLater authored Dec 29, 2023
2 parents 6c6d4d1 + 7c4749e commit c370e16
Show file tree
Hide file tree
Showing 577 changed files with 15,203 additions and 7,673 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/bsp/maxim @supperthomas

*arduino* @mysterywolf
*.attach @mysterywolf

/components/libc/ @mysterywolf
/components/dfs/dfs_v2/ @BernardXiong
Expand Down
1 change: 1 addition & 0 deletions .github/actions/spelling/allow.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github
1 change: 1 addition & 0 deletions .github/actions/spelling/only.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
^documentation/.*
2 changes: 1 addition & 1 deletion .github/workflows/action_tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
env:
TEST_BSP_ROOT: bsp/stm32/stm32f407-atk-explorer
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Tools
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/action_utest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
TEST_CONFIG_FILE: ${{ matrix.legs.CONFIG_FILE }}
TEST_SD_FILE: ${{ matrix.legs.SD_FILE }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Tools
shell: bash
Expand Down
25 changes: 6 additions & 19 deletions .github/workflows/bsp_buildings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ jobs:
- "at91/at91sam9260"
- "wch/arm/ch32f103c8-core"
- "wch/arm/ch32f203r-evt"
- "synwit/swm320"
- "synwit/swm341"
- "synwit/swm320-mini"
- "synwit/swm341-mini"
- "beaglebone"
- "zynqmp-r5-axu4ev"
- "at32/at32f402-start"
Expand Down Expand Up @@ -125,6 +125,7 @@ jobs:
- "stm32/stm32f407-atk-explorer"
- "stm32/stm32f407-robomaster-c"
- "stm32/stm32f407-st-discovery"
- "stm32/stm32f407-rt-spark"
- "stm32/stm32f410-st-nucleo"
- "stm32/stm32f411-atk-nano"
- "stm32/stm32f411-st-nucleo"
Expand Down Expand Up @@ -154,6 +155,7 @@ jobs:
- "stm32/stm32g491-st-nucleo"
- "stm32/stm32g474-st-nucleo"
- "stm32/stm32h563-st-nucleo"
- "stm32/stm32h503-st-nucleo"
- "stm32/stm32h743-armfly-v7"
- "stm32/stm32h743-atk-apollo"
- "stm32/stm32h743-openmv-h7plus"
Expand Down Expand Up @@ -317,7 +319,7 @@ jobs:
SUB_RTT_BSP:
- "x86"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
Expand Down Expand Up @@ -420,19 +422,4 @@ jobs:
SRTT_BSP: ${{ join(matrix.legs.SUB_RTT_BSP, ',') }}
run: |
source ~/.env/env.sh
failed=0
count=0
for bsp in $(echo $SRTT_BSP | tr ',' '\n'); do
count=$((count+1))
echo "::group::Compiling BSP: ==$count=== $bsp ===="
echo bsp/$bsp
ls bsp/$bsp/Kconfig && scons -C bsp/$bsp --pyconfig-silent
pushd bsp/$bsp && pkgs --update && popd
scons -C bsp/$bsp -j$(nproc) --debug=time | tee output.log || \
{ total_time=$(grep "Total command execution time" output.log | awk '{print $5}'); \
failed=$((failed+1)) ; echo "::endgroup::" ; echo "::error::build $bsp failed" ; \
echo "- ❌ build $bsp failed in $total_time seconds " >> $GITHUB_STEP_SUMMARY ; } && \
{ total_time=$(grep "Total command execution time" output.log | awk '{print $5}'); \
echo "- ✅ build $bsp success in $total_time seconds " >> $GITHUB_STEP_SUMMARY ; echo "::endgroup::" ; }
done
exit $failed
python tools/ci/bsp_buildings.py
2 changes: 1 addition & 1 deletion .github/workflows/compile_bsp_with_drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
name: BSP Compilation with More Drivers

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
name: doxygen_doc generate
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Tools
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/file_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: Scan code format and license
if: github.repository_owner == 'RT-Thread'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
runs-on: ubuntu-latest
name: ${{ github.event.inputs.bsp_options }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual_trigger_scons_STM32_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:


steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/manual_trigger_scons_except_STM32_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ jobs:
- {RTT_BSP_NAME: "smartfusion2", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "smartfusion2"}
- {RTT_BSP_NAME: "sparkfun-redv", RTT_TOOL_CHAIN: "sourcery-riscv64-unknown-elf", RTT_BSP: "sparkfun-redv"}
#- {RTT_BSP_NAME: "synopsys_boards", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "synopsys/boards"} #不支持的toolchain
- {RTT_BSP_NAME: "synwit_swm320", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "synwit/swm320"}
- {RTT_BSP_NAME: "synwit_swm341", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "synwit/swm341"}
- {RTT_BSP_NAME: "synwit_swm320-mini", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "synwit/swm320-mini"}
- {RTT_BSP_NAME: "synwit_swm341-mini", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "synwit/swm341-mini"}
#- {RTT_BSP_NAME: "tae32f5300", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "tae32f5300"} #musl toolchain 未支持
#- {RTT_BSP_NAME: "taihu", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "taihu"} #powerpc-eabi-gcc 未支持
#- {RTT_BSP_NAME: "thead-smart", RTT_TOOL_CHAIN: "sourcery-riscv64-unknown-elf", RTT_BSP: "thead-smart"} #menuconfig有问题
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
- {RTT_BSP_NAME: "zynqmp-r5-axu4ev", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "zynqmp-r5-axu4ev"}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual_trigger_scons_fail_bsp_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
- {RTT_BSP_NAME: "yichip_yc3122-pos", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "yichip/yc3122-pos"} #编译问题

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/spell_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Check Spelling

on:
push:
branches:
- master
paths:
- 'documentation/**'
pull_request:
branches:
- master
paths:
- 'documentation/**'
jobs:
spelling:
name: Check Spelling
runs-on: ubuntu-latest
if: github.repository_owner == 'RT-Thread'
steps:
- name: output ignore words info
run: |
echo "> If any words shown as incorrect are spelled correctly, please add them to .github/actions/spelling/allow.txt." >> $GITHUB_STEP_SUMMARY
- name: check spelling
id: spelling
uses: check-spelling/[email protected]
with:
checkout: true
check_file_names: 0
only_check_changed_files: 1
post_comment: 0
extra_dictionaries:
cspell:en_US/src/en_US.txt
cspell:software-terms/softwareTerms.txt
cspell:python/python.txt
cspell:cpp/cpp.txt
check_extra_dictionaries: ''
- name: output Success info
run: |
echo "✅ Check spelling success." >> $GITHUB_STEP_SUMMARY
2 changes: 1 addition & 1 deletion .github/workflows/static_code_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: Static code analysis
if: github.repository_owner == 'RT-Thread'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
Expand Down
Loading

0 comments on commit c370e16

Please sign in to comment.