[ci]change cmd to install.sh (#8018)

This commit is contained in:
Supper Thomas 2023-09-09 06:37:49 +08:00 committed by GitHub
parent 0b9a808cca
commit 4462106a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -38,7 +38,6 @@ jobs:
SUB_RTT_BSP: SUB_RTT_BSP:
- "qemu-vexpress-a9" - "qemu-vexpress-a9"
- "airm2m/air32f103" - "airm2m/air32f103"
#- "airm2m/air105"
- "acm32/acm32f0x0-nucleo" - "acm32/acm32f0x0-nucleo"
- "CME_M7" - "CME_M7"
- "apollo2" - "apollo2"
@ -67,7 +66,6 @@ jobs:
- "hc32/ev_hc32f4a0_lqfp176" - "hc32/ev_hc32f4a0_lqfp176"
- "hc32/ev_hc32f460_lqfp100_v2" - "hc32/ev_hc32f460_lqfp100_v2"
- "hc32l196" - "hc32l196"
#- "tae32f5300"
- "mm32/mm32f3270-100ask-pitaya" - "mm32/mm32f3270-100ask-pitaya"
- "sam7x" - "sam7x"
- "hk32/hk32f030c8-mini" - "hk32/hk32f030c8-mini"
@ -322,9 +320,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 psutil ./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
@ -345,6 +343,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
@ -389,7 +388,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: Install Simulator Tools - name: Install Simulator Tools