Skip to content

Update Spacemit toolchain source and centralize versioning - #2

Merged
alex-spacemit merged 1 commit into
update-gcc-toolchain-urlfrom
copilot/update-gcc-toolchain-url-again
May 14, 2026
Merged

alex-spacemit merged 1 commit into
update-gcc-toolchain-urlfrom
copilot/update-gcc-toolchain-url-again

Conversation

Copilot AI commented May 14, 2026

Copy link
Copy Markdown

The riscv64 Spacemit build path still referenced the legacy GCC toolchain host in both the local build script and CI workflow. This change switches those downloads to the GitHub Releases URL and derives the archive name/URL from a single version variable in each location.

  • Build script

    • Replaced the old archive.spacemit.com toolchain URL in build-riscv64-linux-gnu-spacemit.sh
    • Introduced SPACEMIT_TOOLCHAIN_VERSION as the local source of truth
    • Derived both the toolchain directory name and downloaded archive path from that version
  • GitHub Actions workflow

    • Replaced the hard-coded toolchain cache/download URL in .github/workflows/riscv64-spacemit-linux.yaml
    • Added a job-level SPACEMIT_TOOLCHAIN_VERSION
    • Computed the archive name and release URL from the version in the download step
    • Updated the cache key to track the new GitHub-hosted artifact
  • Versioning cleanup

    • Removed duplicated embedded version strings where the same archive metadata was repeated
    • Reduced future toolchain bumps to a single version edit per file
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"

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>
@alex-spacemit
alex-spacemit marked this pull request as ready for review May 14, 2026 12:07
Copilot AI review requested due to automatic review settings May 14, 2026 12:07
@alex-spacemit
alex-spacemit merged commit cf80ddd into update-gcc-toolchain-url May 14, 2026
2 checks passed
Copilot AI removed the request for review from Copilot May 14, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants