From 80a269d43e76174677810f6198e272f6866059f1 Mon Sep 17 00:00:00 2001 From: Supper Thomas <78900636@qq.com> Date: Thu, 9 Jan 2025 19:49:25 +0800 Subject: [PATCH 1/4] Update action_tools.yml --- .github/workflows/action_tools.yml | 60 +++--------------------------- 1 file changed, 5 insertions(+), 55 deletions(-) diff --git a/.github/workflows/action_tools.yml b/.github/workflows/action_tools.yml index c861027cda0..755c79b23fd 100644 --- a/.github/workflows/action_tools.yml +++ b/.github/workflows/action_tools.yml @@ -3,19 +3,6 @@ name: ToolsCI # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch on: - # Runs at 16:00 UTC (BeiJing 00:00) on the 1st of every month - schedule: - - cron: '0 16 1 * *' - push: - branches: - - master - paths-ignore: - - documentation/** - - '**/README.md' - - '**/README_zh.md' - - '**/*.c' - - '**/*.h' - - '**/*.cpp' pull_request: branches: - master @@ -32,9 +19,8 @@ permissions: jobs: test: - runs-on: ubuntu-22.04 + runs-on: windows-latest name: Tools - if: github.repository_owner == 'RT-Thread' strategy: fail-fast: false env: @@ -45,43 +31,7 @@ jobs: - name: Install Tools shell: bash run: | - wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh - chmod 777 install_ubuntu.sh - ./install_ubuntu.sh - - - name: Install Arm ToolChains - if: ${{ success() }} - shell: bash - run: | - wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.3/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 - sudo tar xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C /opt - /opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc --version - echo "RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin" >> $GITHUB_ENV - - - name: Build Tools - run: | - scons --pyconfig-silent -C $TEST_BSP_ROOT - scons -j$(nproc) -C $TEST_BSP_ROOT - - - name: Project generate Tools - if: ${{ success() }} - run: | - echo "Test to generate eclipse project" - scons --target=eclipse -s -C $TEST_BSP_ROOT - echo "Test to generate cmake project" - scons --target=cmake -s -C $TEST_BSP_ROOT - echo "Test to generate makefile project" - scons --target=makefile -s -C $TEST_BSP_ROOT - - - name: Project dist Tools - if: ${{ success() }} - run: | - echo "Test to dist project" - scons --dist -C $TEST_BSP_ROOT - scons --dist-ide -C $TEST_BSP_ROOT - ls $TEST_BSP_ROOT - ls $TEST_BSP_ROOT/dist - scons --pyconfig-silent -C $TEST_BSP_ROOT/dist/project - scons --pyconfig-silent -C $TEST_BSP_ROOT/rt-studio-project - scons -C $TEST_BSP_ROOT/dist/project - scons -C $TEST_BSP_ROOT/rt-studio-project + wget https://raw.githubusercontent.com/RT-Thread/env/master/install_windows.ps1 -O install_windows.ps1 + set-executionpolicy remotesigned + .\install_windows.ps1 + scons --version From c91ea05989f4000443dfd06a9b4796a8f49eaefb Mon Sep 17 00:00:00 2001 From: Supper Thomas <78900636@qq.com> Date: Thu, 9 Jan 2025 19:56:58 +0800 Subject: [PATCH 2/4] Update action_tools.yml --- .github/workflows/action_tools.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/action_tools.yml b/.github/workflows/action_tools.yml index 755c79b23fd..7339ddeea39 100644 --- a/.github/workflows/action_tools.yml +++ b/.github/workflows/action_tools.yml @@ -20,6 +20,7 @@ permissions: jobs: test: runs-on: windows-latest + name: Tools strategy: fail-fast: false @@ -29,7 +30,7 @@ jobs: - uses: actions/checkout@v4 - name: Install Tools - shell: bash + shell: powershell run: | wget https://raw.githubusercontent.com/RT-Thread/env/master/install_windows.ps1 -O install_windows.ps1 set-executionpolicy remotesigned From e508a2337ae15d77f8546bc26d70f0499cd8a1cf Mon Sep 17 00:00:00 2001 From: Supper Thomas <78900636@qq.com> Date: Thu, 9 Jan 2025 20:15:39 +0800 Subject: [PATCH 3/4] Update action_tools.yml --- .github/workflows/action_tools.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/action_tools.yml b/.github/workflows/action_tools.yml index 7339ddeea39..97eee22c686 100644 --- a/.github/workflows/action_tools.yml +++ b/.github/workflows/action_tools.yml @@ -36,3 +36,16 @@ jobs: set-executionpolicy remotesigned .\install_windows.ps1 scons --version + - name: Install Arm ToolChains + if: ${{ success() }} + shell: powershell + run: | + wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.3/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 + tar -xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C C:\opt + C:\opt\gcc-arm-none-eabi-10-2020-q4-major\bin\arm-none-eabi-gcc --version + $env:RTT_EXEC_PATH = "C:\opt\gcc-arm-none-eabi-10-2020-q4-major\bin" + + - name: Build Tools + run: | + scons --pyconfig-silent -C $TEST_BSP_ROOT + scons -j$(nproc) -C $TEST_BSP_ROOT From ab198db20ea7fedfb90e2db769847d1b58f6547f Mon Sep 17 00:00:00 2001 From: Supper Thomas <78900636@qq.com> Date: Thu, 9 Jan 2025 20:20:17 +0800 Subject: [PATCH 4/4] Update action_tools.yml --- .github/workflows/action_tools.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/action_tools.yml b/.github/workflows/action_tools.yml index 97eee22c686..9dcb195f657 100644 --- a/.github/workflows/action_tools.yml +++ b/.github/workflows/action_tools.yml @@ -40,7 +40,7 @@ jobs: if: ${{ success() }} shell: powershell run: | - wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.3/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 + wget https://github.com/RT-Thread/toolchains-ci/releases/download/v1.3/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -O gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 tar -xjf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 -C C:\opt C:\opt\gcc-arm-none-eabi-10-2020-q4-major\bin\arm-none-eabi-gcc --version $env:RTT_EXEC_PATH = "C:\opt\gcc-arm-none-eabi-10-2020-q4-major\bin"