ci/platforms/windows.ps1: bump risc-v toolchain

Bump xPack GNU RISC-V Embedded GCC v14.2.0-3
This commit is contained in:
simbit18 2025-07-15 15:10:59 +02:00 committed by Xiang Xiao
parent 4df40dcb66
commit 3ff603fc52

View file

@ -231,12 +231,12 @@ function riscv_gcc_toolchain() {
add_path "$NUTTXTOOLS\riscv-none-elf-gcc\bin" add_path "$NUTTXTOOLS\riscv-none-elf-gcc\bin"
if (-not (Test-Path -Path "$NUTTXTOOLS\riscv-none-elf-gcc\bin\riscv-none-elf-gcc.exe")) { if (-not (Test-Path -Path "$NUTTXTOOLS\riscv-none-elf-gcc\bin\riscv-none-elf-gcc.exe")) {
Write-Host "Download: RISCV GCC toolchain" -ForegroundColor Green Write-Host "Download: RISCV GCC toolchain" -ForegroundColor Green
$basefile = "xpack-riscv-none-elf-gcc-13.2.0-2-win32-x64" $basefile = "xpack-riscv-none-elf-gcc-14.2.0-3-win32-x64"
Set-Location "$NUTTXTOOLS" Set-Location "$NUTTXTOOLS"
# Download the latest RISCV GCC toolchain prebuilt by xPack # Download the latest RISCV GCC toolchain prebuilt by xPack
Invoke-WebRequest -Uri "https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v13.2.0-2/$basefile.zip" -OutFile "$NUTTXTOOLS\$basefile.zip" -ErrorAction Stop Invoke-WebRequest -Uri "https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v14.2.0-3/$basefile.zip" -OutFile "$NUTTXTOOLS\$basefile.zip" -ErrorAction Stop
Expand-Archive "$NUTTXTOOLS\$basefile.zip" Expand-Archive "$NUTTXTOOLS\$basefile.zip"
Move-Item -Path "$basefile\xpack-riscv-none-elf-gcc-13.2.0-2" -Destination "riscv-none-elf-gcc" Move-Item -Path "$basefile\xpack-riscv-none-elf-gcc-14.2.0-3" -Destination "riscv-none-elf-gcc"
Remove-Item "$basefile*" -Force Remove-Item "$basefile*" -Force
} }
} }