[acition] update pkgs update script (#8108)

This commit is contained in:
Supper Thomas 2023-10-03 16:50:15 +08:00 committed by GitHub
parent c021c5cd22
commit 87ee7205d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 16 deletions

View File

@ -86,9 +86,9 @@ jobs:
shell: bash shell: bash
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get -qq install gcc-multilib libncurses5 libncurses5-dev libncursesw5-dev scons wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
sudo python -m pip install --upgrade pip -qq chmod 777 install_ubuntu.sh
pip install requests -qq ./install_ubuntu.sh
git config --global http.postBuffer 524288000 git config --global http.postBuffer 524288000
python -c "import tools.menuconfig; tools.menuconfig.touch_env()" python -c "import tools.menuconfig; tools.menuconfig.touch_env()"
echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV
@ -109,6 +109,7 @@ jobs:
run: | run: |
wget -q https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/download/release-16.0.0/LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64.tar.gz wget -q https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/releases/download/release-16.0.0/LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64.tar.gz
sudo tar zxf LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64.tar.gz -C /opt sudo tar zxf LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64.tar.gz -C /opt
sudo apt-get -qq install libncurses5 libncurses5-dev libncursesw5-dev
/opt/LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64/bin/clang --version /opt/LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64/bin/clang --version
echo "RTT_CC=llvm-arm" >> $GITHUB_ENV echo "RTT_CC=llvm-arm" >> $GITHUB_ENV
echo "RTT_EXEC_PATH=/opt/LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64/bin" >> $GITHUB_ENV echo "RTT_EXEC_PATH=/opt/LLVMEmbeddedToolchainForArm-16.0.0-Linux-x86_64/bin" >> $GITHUB_ENV
@ -147,8 +148,17 @@ jobs:
/opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin/riscv-none-embed-gcc --version /opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin/riscv-none-embed-gcc --version
echo "RTT_EXEC_PATH=/opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin" >> $GITHUB_ENV echo "RTT_EXEC_PATH=/opt/xpack-riscv-none-embed-gcc-8.3.0-2.3/bin" >> $GITHUB_ENV
- name: Install Simulator Tools - name: Install riscv32-esp-elf ToolChains
if: ${{ github.event.inputs.bsp_options == 'simulator' && success() }} if: ${{ github.event.inputs.bsp_tool_chain == 'sourcery-riscv32-esp32' && success() }}
run: |
wget -q https://github.com/espressif/crosstool-NG/releases/download/esp-2022r1-RC1/riscv32-esp-elf-gcc11_2_0-esp-2022r1-RC1-linux-amd64.tar.xz
sudo tar xf riscv32-esp-elf-gcc11_2_0-esp-2022r1-RC1-linux-amd64.tar.xz -C /opt
/opt/riscv32-esp-elf/bin/riscv32-esp-elf-gcc --version
pip3 install esptool
echo "RTT_EXEC_PATH=/opt/riscv32-esp-elf/bin" >> $GITHUB_ENV
- name: Install GCC Tools
if: ${{ github.event.inputs.bsp_tool_chain == 'gcc' && success() }}
run: | run: |
sudo apt-get -qq install libsdl2-dev sudo apt-get -qq install libsdl2-dev

View File

@ -135,9 +135,9 @@ jobs:
shell: bash shell: bash
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get -qq install gcc-multilib libncurses5-dev scons wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
sudo python -m pip install --upgrade pip -qq chmod 777 install_ubuntu.sh
pip install requests -qq ./install_ubuntu.sh
git config --global http.postBuffer 524288000 git config --global http.postBuffer 524288000
python -c "import tools.menuconfig; tools.menuconfig.touch_env()" python -c "import tools.menuconfig; tools.menuconfig.touch_env()"
echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV

View File

@ -284,9 +284,9 @@ jobs:
shell: bash shell: bash
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get -qq install gcc-multilib libncurses5-dev scons wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
sudo python -m pip install --upgrade pip -qq chmod 777 install_ubuntu.sh
pip install requests -qq ./install_ubuntu.sh
git config --global http.postBuffer 524288000 git config --global http.postBuffer 524288000
python -c "import tools.menuconfig; tools.menuconfig.touch_env()" python -c "import tools.menuconfig; tools.menuconfig.touch_env()"
echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV
@ -346,7 +346,7 @@ jobs:
wget -q https://github.com/espressif/crosstool-NG/releases/download/esp-2022r1-RC1/riscv32-esp-elf-gcc11_2_0-esp-2022r1-RC1-linux-amd64.tar.xz wget -q https://github.com/espressif/crosstool-NG/releases/download/esp-2022r1-RC1/riscv32-esp-elf-gcc11_2_0-esp-2022r1-RC1-linux-amd64.tar.xz
sudo tar xf riscv32-esp-elf-gcc11_2_0-esp-2022r1-RC1-linux-amd64.tar.xz -C /opt sudo tar xf riscv32-esp-elf-gcc11_2_0-esp-2022r1-RC1-linux-amd64.tar.xz -C /opt
/opt/riscv32-esp-elf/bin/riscv32-esp-elf-gcc --version /opt/riscv32-esp-elf/bin/riscv32-esp-elf-gcc --version
/usr/bin/pip install esptool pip3 install esptool
echo "RTT_EXEC_PATH=/opt/riscv32-esp-elf/bin" >> $GITHUB_ENV echo "RTT_EXEC_PATH=/opt/riscv32-esp-elf/bin" >> $GITHUB_ENV
- name: Bsp Scons Compile - name: Bsp Scons Compile

View File

@ -114,9 +114,9 @@ jobs:
shell: bash shell: bash
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get -qq install gcc-multilib libncurses5-dev scons wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
sudo python -m pip install --upgrade pip -qq chmod 777 install_ubuntu.sh
pip install requests -qq ./install_ubuntu.sh
git config --global http.postBuffer 524288000 git config --global http.postBuffer 524288000
python -c "import tools.menuconfig; tools.menuconfig.touch_env()" python -c "import tools.menuconfig; tools.menuconfig.touch_env()"
echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV