Skip to content

Commit 22cd474

Browse files
committed
CI: Bump riscv-gnu-toolchain
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
1 parent ce548ff commit 22cd474

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ci/riscv-toolchain-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if [[ "$#" == "0" ]] || [[ "$1" != "riscv-collab" ]]; then
1414
TOOLCHAIN_URL=${TOOLCHAIN_REPO}/releases/download/v${GCC_VER}/xpack-riscv-none-elf-gcc-${GCC_VER}-linux-x64.tar.gz
1515
else
1616
UBUNTU_VER=`lsb_release -r | cut -f2`
17-
GCC_VER=2024.09.03
17+
GCC_VER=2024.11.22
1818
TOOLCHAIN_REPO=https://github.com/riscv-collab/riscv-gnu-toolchain
19-
TOOLCHAIN_URL=${TOOLCHAIN_REPO}/releases/download/${GCC_VER}/riscv32-elf-ubuntu-${UBUNTU_VER}-gcc-nightly-${GCC_VER}-nightly.tar.gz
19+
TOOLCHAIN_URL=${TOOLCHAIN_REPO}/releases/download/${GCC_VER}/riscv32-elf-ubuntu-${UBUNTU_VER}-gcc-nightly-${GCC_VER}-nightly.tar.xz
2020
fi
2121

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

0 commit comments

Comments
 (0)