ci : update spacemit toolchain url and enhance curl command (#23642)

* fix(action): update SpacemiT toolchain URL and version

Change-Id: If4cc1c738a855274103f8c3ad52daa33528acd0c

* fix(action): add -L flag to curl command for URL redirection

Change-Id: I9b6c37390f0c7a733a36308c8fb53d22d234ab06
This commit is contained in:
alex-spacemit 2026-05-25 16:43:24 +08:00 committed by GitHub
parent 062d3115aa
commit 5fdf07e33b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -15,6 +15,6 @@ runs:
id: setup id: setup
uses: ./.github/actions/unarchive-tar uses: ./.github/actions/unarchive-tar
with: with:
url: https://archive.spacemit.com/toolchain/spacemit-toolchain-linux-glibc-x86_64-v${{ inputs.version }}.tar.xz url: https://github.com/spacemit-com/toolchain/releases/download/v${{ inputs.version }}/spacemit-toolchain-linux-glibc-x86_64-v${{ inputs.version }}.tar.xz
path: ${{ inputs.path }} path: ${{ inputs.path }}
strip: 1 strip: 1

View File

@ -24,4 +24,4 @@ runs:
run: | run: |
mkdir -p ${{ inputs.path }} mkdir -p ${{ inputs.path }}
cd ${{ inputs.path }} cd ${{ inputs.path }}
curl --no-progress-meter ${{ inputs.url }} | tar -${{ inputs.type }}x --strip-components=${{ inputs.strip }} curl --no-progress-meter -L ${{ inputs.url }} | tar -${{ inputs.type }}x --strip-components=${{ inputs.strip }}

View File

@ -277,7 +277,7 @@ jobs:
env: env:
# Make sure this is in sync with build-cache.yml # Make sure this is in sync with build-cache.yml
SPACEMIT_IME_TOOLCHAIN_VERSION: "1.1.2" SPACEMIT_IME_TOOLCHAIN_VERSION: "1.2.4"
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6

View File

@ -5,7 +5,7 @@
1. Prepare Toolchain For RISCV 1. Prepare Toolchain For RISCV
~~~ ~~~
wget https://archive.spacemit.com/toolchain/spacemit-toolchain-linux-glibc-x86_64-v1.1.2.tar.xz wget https://github.com/spacemit-com/toolchain/releases/download/v1.2.4/spacemit-toolchain-linux-glibc-x86_64-v1.2.4.tar.xz
~~~ ~~~
2. Build 2. Build