Skip to content

Commit

Permalink
[action] Fix manual trigger for others (#8461)
Browse files Browse the repository at this point in the history
  • Loading branch information
supperthomas authored Jan 3, 2024
1 parent 6cc6362 commit b78b7d6
Showing 1 changed file with 4 additions and 49 deletions.
53 changes: 4 additions & 49 deletions .github/workflows/manual_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,35 +34,10 @@ on:
- "gcc"
- "sourcery-riscv32-esp32"
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
type: string
default: 'CONFIG_BSP_USING_GPIO=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'
default: 'CONFIG_RT_USING_DEBUG=y,CONFIG_RT_DEBUGING_COLOR=y,CONFIG_RT_DEBUGING_CONTEXT=y'
dist_flag:
description: 'True to dist all bsp, False not dist'
required: true
Expand All @@ -76,7 +51,6 @@ jobs:
build:
runs-on: ubuntu-latest
name: ${{ github.event.inputs.bsp_options }}
if: github.repository_owner == 'RT-Thread'
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand Down Expand Up @@ -175,27 +149,8 @@ jobs:
echo $RTT_BSP
ls bsp/$RTT_BSP/Kconfig && scons -C bsp/$RTT_BSP --pyconfig-silent
config=${{ github.event.inputs.bsp_config}}
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_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
echo "$config"
echo "$config" >> bsp/$RTT_BSP/.config
scons -C bsp/$RTT_BSP --pyconfig-silent
pushd bsp/$RTT_BSP && pkgs --update && popd
cat bsp/$RTT_BSP/.config
Expand Down

0 comments on commit b78b7d6

Please sign in to comment.