mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 11:30:01 +08:00
[tools/env]统一tools中env相关的接口,优化env部分路径拼接 (#9185)
* 统一tools中env相关的接口到env_utility.py文件,并同步调整ci * 移除非本提交的文件 --------- Co-authored-by: Meco Man <920369182@qq.com>
This commit is contained in:
@@ -370,9 +370,9 @@ jobs:
|
||||
chmod 777 install_ubuntu.sh
|
||||
./install_ubuntu.sh
|
||||
git config --global http.postBuffer 524288000
|
||||
python -c "import tools.menukconfig; tools.menukconfig.touch_env()"
|
||||
echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV
|
||||
echo "RTT_CC=gcc" >> $GITHUB_ENV
|
||||
echo "export PATH=~/.env/tools/scripts:$PATH" > ~/.env/env.sh
|
||||
|
||||
- name: Install Arm ToolChains
|
||||
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm' && success() }}
|
||||
|
||||
@@ -52,7 +52,6 @@ jobs:
|
||||
git config --global http.postBuffer 524288000
|
||||
git remote -v
|
||||
git fetch origin
|
||||
python -c "import tools.menukconfig; tools.menukconfig.touch_env()"
|
||||
|
||||
- name: Install Arm ToolChains
|
||||
if: ${{ success() }}
|
||||
@@ -67,5 +66,5 @@ jobs:
|
||||
if: ${{ success() }}
|
||||
shell: bash
|
||||
run: |
|
||||
source ~/.env/env.sh
|
||||
#python tools/ci/compile_bsp_with_drivers.py
|
||||
# source ~/.env/env.sh
|
||||
# python tools/ci/compile_bsp_with_drivers.py
|
||||
|
||||
@@ -66,7 +66,6 @@ jobs:
|
||||
chmod 777 install_ubuntu.sh
|
||||
./install_ubuntu.sh
|
||||
git config --global http.postBuffer 524288000
|
||||
python -c "import tools.menukconfig; tools.menukconfig.touch_env()"
|
||||
echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV
|
||||
echo "RTT_CC=gcc" >> $GITHUB_ENV
|
||||
|
||||
@@ -145,7 +144,7 @@ jobs:
|
||||
RTT_BSP: ${{ github.event.inputs.bsp_options }}
|
||||
RTT_TOOL_CHAIN: ${{ github.event.inputs.bsp_tool_chain}}
|
||||
run: |
|
||||
source ~/.env/env.sh
|
||||
# source ~/.env/env.sh
|
||||
echo $RTT_BSP
|
||||
ls bsp/$RTT_BSP/Kconfig && scons -C bsp/$RTT_BSP --pyconfig-silent
|
||||
config=${{ github.event.inputs.bsp_config}}
|
||||
|
||||
@@ -141,7 +141,6 @@ jobs:
|
||||
chmod 777 install_ubuntu.sh
|
||||
./install_ubuntu.sh
|
||||
git config --global http.postBuffer 524288000
|
||||
python -c "import tools.menukconfig; tools.menukconfig.touch_env()"
|
||||
echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV
|
||||
echo "RTT_CC=gcc" >> $GITHUB_ENV
|
||||
|
||||
@@ -161,7 +160,7 @@ jobs:
|
||||
RTT_BSP: ${{ matrix.legs.RTT_BSP }}
|
||||
RTT_TOOL_CHAIN: ${{ matrix.legs.RTT_TOOL_CHAIN }}
|
||||
run: |
|
||||
source ~/.env/env.sh
|
||||
# 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
|
||||
|
||||
@@ -286,7 +286,6 @@ jobs:
|
||||
chmod 777 install_ubuntu.sh
|
||||
./install_ubuntu.sh
|
||||
git config --global http.postBuffer 524288000
|
||||
python -c "import tools.menukconfig; tools.menukconfig.touch_env()"
|
||||
echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV
|
||||
echo "RTT_CC=gcc" >> $GITHUB_ENV
|
||||
|
||||
@@ -354,7 +353,7 @@ jobs:
|
||||
RTT_BSP: ${{ matrix.legs.RTT_BSP }}
|
||||
RTT_TOOL_CHAIN: ${{ matrix.legs.RTT_TOOL_CHAIN }}
|
||||
run: |
|
||||
source ~/.env/env.sh
|
||||
# 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
|
||||
|
||||
@@ -116,7 +116,6 @@ jobs:
|
||||
chmod 777 install_ubuntu.sh
|
||||
./install_ubuntu.sh
|
||||
git config --global http.postBuffer 524288000
|
||||
python -c "import tools.menukconfig; tools.menukconfig.touch_env()"
|
||||
echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV
|
||||
echo "RTT_CC=gcc" >> $GITHUB_ENV
|
||||
|
||||
@@ -175,7 +174,7 @@ jobs:
|
||||
RTT_BSP: ${{ matrix.legs.RTT_BSP }}
|
||||
RTT_TOOL_CHAIN: ${{ matrix.legs.RTT_TOOL_CHAIN }}
|
||||
run: |
|
||||
source ~/.env/env.sh
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user