[action] Fix manual trigger for others (#8461)

This commit is contained in:
Supper Thomas 2024-01-03 23:23:24 +08:00 committed by GitHub
parent 6cc63626d7
commit b78b7d6907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 49 deletions

View File

@ -34,35 +34,10 @@ on:
- "gcc" - "gcc"
- "sourcery-riscv32-esp32" - "sourcery-riscv32-esp32"
bsp_config: bsp_config:
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT ' description: 'Type a config you want mannual test in .config, like: CONFIG_RT_USING_DEBUG=y,CONFIG_RT_DEBUGING_COLOR=y,CONFIG_RT_DEBUGING_CONTEXT=y'
required: false required: false
type: string type: string
default: 'CONFIG_BSP_USING_GPIO=y' default: 'CONFIG_RT_USING_DEBUG=y,CONFIG_RT_DEBUGING_COLOR=y,CONFIG_RT_DEBUGING_CONTEXT=y'
bsp_config1:
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT '
required: false
type: string
default: 'CONFIG_BSP_USING_GPIO=y'
bsp_config2:
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT '
required: false
type: string
default: 'CONFIG_BSP_USING_GPIO=y'
bsp_config3:
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT '
required: false
type: string
default: 'CONFIG_BSP_USING_GPIO=y'
bsp_config4:
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT '
required: false
type: string
default: 'CONFIG_BSP_USING_GPIO=y'
bsp_config5:
description: 'Type a config you want mannual test in .config, like CONFIG_BSP_USING_I2C CONFIG_BSP_USING_WDT '
required: false
type: string
default: 'CONFIG_BSP_USING_GPIO=y'
dist_flag: dist_flag:
description: 'True to dist all bsp, False not dist' description: 'True to dist all bsp, False not dist'
required: true required: true
@ -76,7 +51,6 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: ${{ github.event.inputs.bsp_options }} name: ${{ github.event.inputs.bsp_options }}
if: github.repository_owner == 'RT-Thread'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python - name: Set up Python
@ -175,27 +149,8 @@ jobs:
echo $RTT_BSP echo $RTT_BSP
ls bsp/$RTT_BSP/Kconfig && scons -C bsp/$RTT_BSP --pyconfig-silent ls bsp/$RTT_BSP/Kconfig && scons -C bsp/$RTT_BSP --pyconfig-silent
config=${{ github.event.inputs.bsp_config}} config=${{ github.event.inputs.bsp_config}}
preconfig=${config%%=*} echo "$config"
echo "$preconfig" echo "$config" >> bsp/$RTT_BSP/.config
sed -i "/$preconfig/ s/.*/$config/" bsp/$RTT_BSP/.config
scons -C bsp/$RTT_BSP --pyconfig-silent
pushd bsp/$RTT_BSP && pkgs --update && popd
config=${{ github.event.inputs.bsp_config1}}
preconfig=${config%%=*}
echo "$preconfig"
sed -i "/$preconfig/ s/.*/$config/" bsp/$RTT_BSP/.config
scons -C bsp/$RTT_BSP --pyconfig-silent
pushd bsp/$RTT_BSP && pkgs --update && popd
config=${{ github.event.inputs.bsp_config2}}
preconfig=${config%%=*}
echo "$preconfig"
sed -i "/$preconfig/ s/.*/$config/" bsp/$RTT_BSP/.config
scons -C bsp/$RTT_BSP --pyconfig-silent
pushd bsp/$RTT_BSP && pkgs --update && popd
config=${{ github.event.inputs.bsp_config3}}
preconfig=${config%%=*}
echo "$preconfig"
sed -i "/$preconfig/ s/.*/$config/" bsp/$RTT_BSP/.config
scons -C bsp/$RTT_BSP --pyconfig-silent scons -C bsp/$RTT_BSP --pyconfig-silent
pushd bsp/$RTT_BSP && pkgs --update && popd pushd bsp/$RTT_BSP && pkgs --update && popd
cat bsp/$RTT_BSP/.config cat bsp/$RTT_BSP/.config