Skip to content

Commit

Permalink
CI: Bump riscv-gnu-toolchain
Browse files Browse the repository at this point in the history
Ubuntu's GNU tar supports multiple compression formats [1], allowing us
to extract both gzip and XZ archives using the same command, reflecting
the riscv-gnu-toolchain's recent compression format change [2].

[1] https://www.gnu.org/software/tar/manual/tar.html#SEC131
[2] riscv-collab/riscv-gnu-toolchain#1606
  • Loading branch information
jserv authored and ChinYikMing committed Dec 14, 2024
1 parent 4b32e32 commit db41326
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ci/riscv-toolchain-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ if [[ "$#" == "0" ]] || [[ "$1" != "riscv-collab" ]]; then
TOOLCHAIN_URL=${TOOLCHAIN_REPO}/releases/download/v${GCC_VER}/xpack-riscv-none-elf-gcc-${GCC_VER}-linux-x64.tar.gz
else
UBUNTU_VER=`lsb_release -r | cut -f2`
GCC_VER=2024.09.03
GCC_VER=2024.11.22
TOOLCHAIN_REPO=https://github.com/riscv-collab/riscv-gnu-toolchain
TOOLCHAIN_URL=${TOOLCHAIN_REPO}/releases/download/${GCC_VER}/riscv32-elf-ubuntu-${UBUNTU_VER}-gcc-nightly-${GCC_VER}-nightly.tar.gz
TOOLCHAIN_URL=${TOOLCHAIN_REPO}/releases/download/${GCC_VER}/riscv32-elf-ubuntu-${UBUNTU_VER}-gcc-nightly-${GCC_VER}-nightly.tar.xz
fi

wget -q ${TOOLCHAIN_URL} -O- | tar -C toolchain --strip-components=1 -xz

0 comments on commit db41326

Please sign in to comment.