summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSupper Thomas <[email protected]>2024-01-03 23:23:24 +0800
committerGitHub <[email protected]>2024-01-03 23:23:24 +0800
commitb78b7d690784a7af1be9f38bb1ebed67369bf89b (patch)
tree681486299ef345fdbe66d9d6c6f78c35792c7b7f /.github
parent6cc63626d7f29534b5264c3fa1a4d04e8547eb37 (diff)
[action] Fix manual trigger for others (#8461)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/manual_dist.yml53
1 files changed, 4 insertions, 49 deletions
diff --git a/.github/workflows/manual_dist.yml b/.github/workflows/manual_dist.yml
index 304f5579e9..b3ec3e80bb 100644
--- a/.github/workflows/manual_dist.yml
+++ b/.github/workflows/manual_dist.yml
@@ -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
@@ -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
@@ -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