summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorSupper Thomas <[email protected]>2023-08-22 11:31:59 +0800
committerGitHub <[email protected]>2023-08-22 11:31:59 +0800
commitc26bb392b6cd18ea9587be220a894abb70891461 (patch)
treed20f899434dc5c2c503f3bfafa6471af8fdb1735 /.github/workflows
parent30c793fdb99376197a569d28ec74d76cfc6d6638 (diff)
[CI] add more config for manual trigger (#7970)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/manual_dist.yml51
1 files changed, 49 insertions, 2 deletions
diff --git a/.github/workflows/manual_dist.yml b/.github/workflows/manual_dist.yml
index d89090f6e8..616f4522ed 100644
--- a/.github/workflows/manual_dist.yml
+++ b/.github/workflows/manual_dist.yml
@@ -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/