[CI] add more config for manual trigger (#7970)
This commit is contained in:
parent
30c793fdb9
commit
c26bb392b6
|
@ -36,7 +36,32 @@ on:
|
|||
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'
|
||||
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'
|
||||
dist_flag:
|
||||
description: 'True to dist all bsp, False not dist'
|
||||
required: true
|
||||
|
@ -137,9 +162,31 @@ 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
|
||||
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
|
||||
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)
|
||||
mkdir -p ${{ github.workspace }}/$RTT_BSP
|
||||
cp -r bsp/$RTT_BSP ${{ github.workspace }}/$RTT_BSP/
|
||||
|
|
Loading…
Reference in New Issue