Skip to content
Merged
2 changes: 1 addition & 1 deletion .github/workflows/action_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
runs-on: [self-hosted, windows, x64]
name: ${{ github.event.inputs.bsp_options }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@main
- name: Bsp Scons Compile
if: ${{ success() }}
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/action_tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
env:
TEST_BSP_ROOT: bsp/stm32/stm32f407-atk-explorer
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main

- 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 @@ -56,7 +56,7 @@ jobs:
TEST_CONFIG_FILE: ${{ matrix.legs.CONFIG_FILE }}
TEST_SD_FILE: ${{ matrix.legs.SD_FILE }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main

- name: Install Tools
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/bsp_buildings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
filtered_matrix: ${{ steps.filter.outputs.filtered_matrix }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@main
with:
sparse-checkout: .github/ALL_BSP_COMPILE.json
persist-credentials: false
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
fail-fast: false
matrix: ${{ fromJson(needs.generate-matrix.outputs.filtered_matrix) }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@main
with:
Expand Down
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 @@ -24,7 +24,7 @@ jobs:
name: BSP Compilation with More Drivers

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manual_bsp_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ jobs:
runs-on: ubuntu-22.04
name: ${{ github.event.inputs.bsp_options }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@main
with:
python-version: 3.8

Expand Down
31 changes: 14 additions & 17 deletions .github/workflows/manual_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,32 +53,31 @@ jobs:
runs-on: ubuntu-22.04
name: ${{ github.event.inputs.bsp_options }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@main
with:
python-version: 3.8

- name: Install Tools
shell: bash
run: |
sudo apt-get update
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
chmod 777 install_ubuntu.sh
./install_ubuntu.sh
pip install -r tools/requirements.txt
git config --global http.postBuffer 524288000
echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV
echo "RTT_CC=gcc" >> $GITHUB_ENV
echo "export PATH=~/.env/tools/scripts:$PATH" > ~/.env/env.sh
sudo apt-get -qq install cppcheck

- name: Install Arm ToolChains
- name: Install ToolChains
if: ${{ github.event.inputs.bsp_tool_chain == 'sourcery-arm' && 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
source tools/ci/toolchain.sh arm-none-eabi-gcc
echo "RTT_EXEC_PATH=/opt/arm-none-eabi-gcc/bin" >> $GITHUB_ENV

- name: Install LLVM-Arm ToolChains
if: ${{ github.event.inputs.bsp_tool_chain == 'llvm-arm' && success() }}
Expand Down Expand Up @@ -152,19 +151,17 @@ jobs:
config=${{ github.event.inputs.bsp_config}}
echo "$config"
echo "$config" >> bsp/$RTT_BSP/.config
insert_code="env.Tool('compilation_db')\nenv.CompilationDatabase()\n"
sed -i "/DoBuilding(TARGET, objs)/i $insert_code" bsp/$RTT_BSP/SConstruct
scons -C bsp/$RTT_BSP --pyconfig-silent
pushd bsp/$RTT_BSP && pkgs --update && popd
cat bsp/$RTT_BSP/.config
scons -C bsp/$RTT_BSP -j$(nproc)
scons -C bsp/$RTT_BSP -j$(nproc) --cdb
ls bsp/$RTT_BSP
cppcheck --project=bsp/$RTT_BSP/compile_commands.json
pwd
scons --dist -C bsp/$RTT_BSP
cppcheck --project=bsp/$RTT_BSP/build/compile_commands.json

- uses: actions/upload-artifact@v3
if: ${{ github.event.inputs.dist_flag }}
- uses: actions/upload-artifact@main
if: ${{ github.event.inputs.dist_flag && success()}}
with:
name: dist_file
path: ${{ github.workspace }}/${{ github.event.inputs.bsp_options }}/*
name: ${{ github.event.inputs.bsp_options }}
path: ${{ github.workspace }}/bsp/${{ github.event.inputs.bsp_options }}/dist/*.zip

183 changes: 0 additions & 183 deletions .github/workflows/manual_trigger_scons_STM32_all.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ jobs:
- {RTT_BSP_NAME: "nuvoton_numaker-m2354 ", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "nuvoton/numaker-m2354"}

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

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@main
with:
python-version: 3.8

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manual_trigger_update_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ jobs:
runs-on: ubuntu-22.04
name: update and create pull request
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@main
with:
python-version: 3.8

Expand Down
Loading
Loading