From b78b7d690784a7af1be9f38bb1ebed67369bf89b Mon Sep 17 00:00:00 2001 From: Supper Thomas <78900636@qq.com> Date: Wed, 3 Jan 2024 23:23:24 +0800 Subject: [PATCH] [action] Fix manual trigger for others (#8461) --- .github/workflows/manual_dist.yml | 53 +++---------------------------- 1 file 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