Skip to content

Commit f71d9da

Browse files
authored
ci: Upgrade riscv toolchain and harden curl downloads (#1418)
1 parent 8cc8009 commit f71d9da

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

circle.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,17 @@ commands:
7979
name: "Install CMake <<parameters.version>>"
8080
working_directory: /usr/local
8181
command: |
82-
curl -L https://github.com/Kitware/CMake/releases/download/v<<parameters.version>>/cmake-<<parameters.version>>-linux-x86_64.tar.gz | sudo tar -xz --strip=1
82+
curl -L --retry 3 -C - --output-dir /tmp -O https://github.com/Kitware/CMake/releases/download/v<<parameters.version>>/cmake-<<parameters.version>>-linux-x86_64.tar.gz
83+
sudo tar -xz --strip=1 -f /tmp/cmake-*.tar.gz
8384
8485
install_riscv_toolchain:
8586
steps:
8687
- run:
8788
name: "Install RISC-V Toolchain"
8889
working_directory: /usr/local
8990
command: |
90-
curl -L https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2025.01.20/riscv32-glibc-ubuntu-24.04-llvm-nightly-2025.01.20-nightly.tar.xz > /tmp/riscv.tar.xz
91-
sudo cmake -E tar xJ /tmp/riscv.tar.xz
92-
# Fixup misplaced libunwind.
93-
(cd riscv/sysroot/lib && sudo ln -s ../../lib/riscv32-unknown-linux-gnu/libunwind.so.1)
91+
curl -L --retry 3 -C - --output-dir /tmp -O https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2026.01.01/riscv32-glibc-ubuntu-24.04-llvm.tar.xz
92+
sudo cmake -E tar xJ /tmp/riscv*.tar.xz
9493
9594
checkout_submodules:
9695
steps:
@@ -146,7 +145,8 @@ commands:
146145
working_directory: ~/spec-tests
147146
command: |
148147
find . -delete
149-
curl -L https://github.com/<<parameters.repo>>/releases/download/<<parameters.release>>/fixtures_<<parameters.fixtures_suffix>>.tar.gz | tar -xz
148+
curl -L --retry 3 -C - --output-dir /tmp -O https://github.com/<<parameters.repo>>/releases/download/<<parameters.release>>/fixtures_<<parameters.fixtures_suffix>>.tar.gz
149+
tar -xzf /tmp/fixtures_*.tar.gz
150150
ls -l
151151
152152
build:

0 commit comments

Comments
 (0)