Skip to content

Commit

Permalink
[ci] add the manual trigger;add the fail bsp check (#7919)
Browse files Browse the repository at this point in the history
  • Loading branch information
supperthomas authored Aug 5, 2023
1 parent 3c289c2 commit 8dfb3d1
Show file tree
Hide file tree
Showing 4 changed files with 227 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/manual_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ jobs:
echo $RTT_BSP
ls bsp/$RTT_BSP/Kconfig && scons -C bsp/$RTT_BSP --pyconfig-silent
sed -i "s/# ${{ github.event.inputs.bsp_config }} is not set/${{ github.event.inputs.bsp_config }}=y/g" bsp/$RTT_BSP/.config
scons -C bsp/$RTT_BSP --pyconfig-silent
pushd bsp/$RTT_BSP && pkgs --update && popd
scons -C bsp/$RTT_BSP -j$(nproc)
mkdir -p ${{ github.workspace }}/$RTT_BSP
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/manual_trigger_scons_STM32_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
name: manual_scons_dist_STM32_all

on:
# Runs at 16:00 UTC (BeiJing 00:00) on the 3st of every month
schedule:
- cron: '0 16 2 * *'
workflow_dispatch:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs
inputs:
Expand Down
32 changes: 23 additions & 9 deletions .github/workflows/manual_trigger_scons_except_STM32_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ name: manual_scons_dist_except_STM32_all


on:
# Runs at 16:00 UTC (BeiJing 00:00) on the 3st of every month
schedule:
- cron: '0 16 3 * *'
workflow_dispatch:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs
inputs:
Expand Down Expand Up @@ -86,7 +89,7 @@ jobs:
#- {RTT_BSP_NAME: "core-v-mcu_core-v-cv32e40p", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "core-v-mcu/core-v-cv32e40p"} #特殊toolchain,不支持
- {RTT_BSP_NAME: "dm365", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "dm365"}
- {RTT_BSP_NAME: "efm32", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "efm32"}
#- {RTT_BSP_NAME: "ESP32_C3", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "ESP32_C3"} #bsp还不完善,toolchain不支持
- {RTT_BSP_NAME: "ESP32_C3", RTT_TOOL_CHAIN: "sourcery-riscv32-esp32", RTT_BSP: "ESP32_C3"}
#- {RTT_BSP_NAME: "essemi_es32f0654", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "essemi/es32f0654"} #GCC link文件没支持好
#- {RTT_BSP_NAME: "essemi_es32f365x", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "essemi/es32f365x"} #GCC link文件没支持好
- {RTT_BSP_NAME: "essemi_es32f369x", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "essemi/es32f369x"}
Expand Down Expand Up @@ -132,7 +135,7 @@ jobs:
#- {RTT_BSP_NAME: "imx_imx6ull-smart", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imx/imx6ull-smart"} # toolchain还没支持
- {RTT_BSP_NAME: "imx6sx_cortex-a9", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imx6sx/cortex-a9"}
- {RTT_BSP_NAME: "imx6ul", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imx6ul"}
#- {RTT_BSP_NAME: "imxrt_imxrt1021-nxp-evk", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imxrt/imxrt1021-nxp-evk"} #GCC编译有问题
- {RTT_BSP_NAME: "imxrt_imxrt1021-nxp-evk", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imxrt/imxrt1021-nxp-evk"}
- {RTT_BSP_NAME: "imxrt_imxrt1052-atk-commander", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imxrt/imxrt1052-atk-commander"}
- {RTT_BSP_NAME: "imxrt_imxrt1052-fire-pro", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imxrt/imxrt1052-fire-pro"}
- {RTT_BSP_NAME: "imxrt_imxrt1052-nxp-evk", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imxrt/imxrt1052-nxp-evk"}
Expand Down Expand Up @@ -184,10 +187,10 @@ jobs:
#- {RTT_BSP_NAME: "mini4020", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mini4020"} #toolchain不支持
- {RTT_BSP_NAME: "mipssim", RTT_TOOL_CHAIN: "sourcery-mips", RTT_BSP: "mipssim"}
- {RTT_BSP_NAME: "mm32_mm32f3270-100ask-pitaya", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32/mm32f3270-100ask-pitaya"}
#- {RTT_BSP_NAME: "mm32f103x", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32f103x"} #编译问题
- {RTT_BSP_NAME: "mm32f103x", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32f103x"}
#- {RTT_BSP_NAME: "mm32f327x", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32f327x"} #编译问题
#- {RTT_BSP_NAME: "mm32l07x", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32l07x"} #编译问题
#- {RTT_BSP_NAME: "mm32l3xx", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32l3xx"} #编译问题
- {RTT_BSP_NAME: "mm32l3xx", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "mm32l3xx"}
- {RTT_BSP_NAME: "n32_n32g43xcl-stb", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "n32/n32g43xcl-stb"}
- {RTT_BSP_NAME: "n32_n32g457qel-stb", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "n32/n32g457qel-stb"}
- {RTT_BSP_NAME: "n32_n32g45xcl-stb", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "n32/n32g45xcl-stb"}
Expand Down Expand Up @@ -215,16 +218,16 @@ jobs:
#- {RTT_BSP_NAME: "pic32ethernet", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "pic32ethernet"} #编译错误
- {RTT_BSP_NAME: "qemu-vexpress-a9", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "qemu-vexpress-a9"}
- {RTT_BSP_NAME: "qemu-virt64-aarch64", RTT_TOOL_CHAIN: "sourcery-aarch64", RTT_BSP: "qemu-virt64-aarch64"}
# - {RTT_BSP_NAME: "qemu-virt64-riscv", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "qemu-virt64-riscv"} #riscv64-unknown-elf-gcc toolchain不支持
- {RTT_BSP_NAME: "qemu-virt64-riscv", RTT_TOOL_CHAIN: "sourcery-riscv64-unknown-elf", RTT_BSP: "qemu-virt64-riscv"} #riscv64-unknown-elf-gcc toolchain不支持
# - {RTT_BSP_NAME: "raspberry-pi_raspi2", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "raspberry-pi/raspi2"} #编译错误,toolchain不对
- {RTT_BSP_NAME: "raspberry-pi_raspi3-32", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "raspberry-pi/raspi3-32"}
#- {RTT_BSP_NAME: "raspberry-pi_raspi3-64", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "raspberry-pi/raspi3-64"} #TOOLCHAIN未支持
- {RTT_BSP_NAME: "raspberry-pi_raspi3-64", RTT_TOOL_CHAIN: "aarch64", RTT_BSP: "raspberry-pi/raspi3-64"}
- {RTT_BSP_NAME: "raspberry-pi_raspi4-32", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "raspberry-pi/raspi4-32"}
#- {RTT_BSP_NAME: "raspberry-pi_raspi4-64", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "raspberry-pi/raspi4-64"} #toolchain未支持
- {RTT_BSP_NAME: "raspberry-pi_raspi4-64", RTT_TOOL_CHAIN: "aarch64", RTT_BSP: "raspberry-pi/raspi4-64"}
- {RTT_BSP_NAME: "raspberry-pico", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "raspberry-pico"}
- {RTT_BSP_NAME: "renesas_ebf_qi_min_6m5", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ebf_qi_min_6m5"}
#- {RTT_BSP_NAME: "renesas_ra2l1-cpk", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra2l1-cpk"} #编译错误
#- {RTT_BSP_NAME: "renesas_ra4m2-eco", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra4m2-eco"} #编译错误
- {RTT_BSP_NAME: "renesas_ra2l1-cpk", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra2l1-cpk"} #编译错误
- {RTT_BSP_NAME: "renesas_ra4m2-eco", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra4m2-eco"} #编译错误
- {RTT_BSP_NAME: "renesas_ra6m3-ek", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra6m3-ek"}
- {RTT_BSP_NAME: "renesas_ra6m3-hmi-board", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra6m3-hmi-board"}
- {RTT_BSP_NAME: "renesas_ra6m4-cpk", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "renesas/ra6m4-cpk"}
Expand Down Expand Up @@ -336,6 +339,15 @@ jobs:
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'gcc' && success() }}
run: |
sudo apt-get -qq install libsdl2-dev
- name: Install riscv32-esp-elf ToolChains
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-riscv32-esp32' && success() }}
run: |
wget -q https://github.com/espressif/crosstool-NG/releases/download/esp-2022r1-RC1/riscv32-esp-elf-gcc11_2_0-esp-2022r1-RC1-linux-amd64.tar.xz
sudo tar xf riscv32-esp-elf-gcc11_2_0-esp-2022r1-RC1-linux-amd64.tar.xz -C /opt
/opt/riscv32-esp-elf/bin/riscv32-esp-elf-gcc --version
/usr/bin/pip install esptool
echo "RTT_EXEC_PATH=/opt/riscv32-esp-elf/bin" >> $GITHUB_ENV
- name: Bsp Scons Compile
if: ${{ success() }}
Expand All @@ -347,6 +359,8 @@ jobs:
source ~/.env/env.sh
echo $RTT_BSP
ls bsp/$RTT_BSP/Kconfig && scons -C bsp/$RTT_BSP --pyconfig-silent
sed -i "s/# ${{ github.event.inputs.bsp_config }} is not set/${{ github.event.inputs.bsp_config }}=y/g" bsp/$RTT_BSP/.config
scons -C bsp/$RTT_BSP --pyconfig-silent
pushd bsp/$RTT_BSP && pkgs --update && popd
scons -C bsp/$RTT_BSP -j$(nproc)
mkdir -p ${{ github.workspace }}/$RTT_BSP
Expand Down
Loading

0 comments on commit 8dfb3d1

Please sign in to comment.