From 2ceda87e9eaabb8da8c94ef343a8982d636abbbc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 12:02:02 +0000 Subject: [PATCH] Update Spacemit toolchain download URL Agent-Logs-Url: https://github.com/spacemit-com/sherpa-onnx/sessions/eb998fb7-04c9-4c67-a2a5-b140725573d9 Co-authored-by: alex-spacemit <213897846+alex-spacemit@users.noreply.github.com> --- .github/workflows/riscv64-spacemit-linux.yaml | 11 ++++++++--- build-riscv64-linux-gnu-spacemit.sh | 7 ++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/riscv64-spacemit-linux.yaml b/.github/workflows/riscv64-spacemit-linux.yaml index 8b1c6a3911..61eb99a298 100755 --- a/.github/workflows/riscv64-spacemit-linux.yaml +++ b/.github/workflows/riscv64-spacemit-linux.yaml @@ -24,6 +24,8 @@ jobs: riscv64_spacemit_linux: runs-on: ${{ matrix.os }} name: ${{ matrix.os }} ${{ matrix.lib_type }} + env: + SPACEMIT_TOOLCHAIN_VERSION: v1.1.2 strategy: fail-fast: false matrix: @@ -67,17 +69,20 @@ jobs: uses: actions/cache@v4 with: path: toolchain - key: https://archive.spacemit.com/toolchain/spacemit-toolchain-linux-glibc-x86_64-v1.1.2.tar.xz + key: ${{ format('https://github.com/spacemit-com/toolchain/releases/download/{0}/spacemit-toolchain-linux-glibc-x86_64-{0}.tar.xz', env.SPACEMIT_TOOLCHAIN_VERSION) }} - name: Download toolchain if: steps.cache-toolchain.outputs.cache-hit != 'true' shell: bash run: | - wget -q https://archive.spacemit.com/toolchain/spacemit-toolchain-linux-glibc-x86_64-v1.1.2.tar.xz + toolchain_archive=spacemit-toolchain-linux-glibc-x86_64-${SPACEMIT_TOOLCHAIN_VERSION}.tar.xz + toolchain_url=https://github.com/spacemit-com/toolchain/releases/download/${SPACEMIT_TOOLCHAIN_VERSION}/${toolchain_archive} + + wget -q ${toolchain_url} mkdir $GITHUB_WORKSPACE/toolchain - tar xvf spacemit-toolchain-linux-glibc-x86_64-v1.1.2.tar.xz --strip-components 1 -C $GITHUB_WORKSPACE/toolchain + tar xvf ${toolchain_archive} --strip-components 1 -C $GITHUB_WORKSPACE/toolchain ls -lh $GITHUB_WORKSPACE/toolchain/bin - name: Display toolchain info diff --git a/build-riscv64-linux-gnu-spacemit.sh b/build-riscv64-linux-gnu-spacemit.sh index 0d50b9f658..7573bafb66 100755 --- a/build-riscv64-linux-gnu-spacemit.sh +++ b/build-riscv64-linux-gnu-spacemit.sh @@ -1,9 +1,10 @@ #!/usr/bin/env bash set -ex -SPACEMIT_TOOLCHAIN=spacemit-toolchain-linux-glibc-x86_64-v1.1.2 -DOWNLOAD_URL="https://archive.spacemit.com/toolchain/${SPACEMIT_TOOLCHAIN}.tar.xz" -DOWNLOAD_FILE="./riscv-spacemit-toolchain.tar.gz" +SPACEMIT_TOOLCHAIN_VERSION=v1.1.2 +SPACEMIT_TOOLCHAIN=spacemit-toolchain-linux-glibc-x86_64-${SPACEMIT_TOOLCHAIN_VERSION} +DOWNLOAD_URL="https://github.com/spacemit-com/toolchain/releases/download/${SPACEMIT_TOOLCHAIN_VERSION}/${SPACEMIT_TOOLCHAIN}.tar.xz" +DOWNLOAD_FILE="./${SPACEMIT_TOOLCHAIN}.tar.xz" if [ -n "$RISCV_ROOT_PATH" ] && [ -d "$RISCV_ROOT_PATH" ]; then echo "LOCAL RISCV_ROOT_PATH: $RISCV_ROOT_PATH"