Skip to content

Commit 5d8f386

Browse files
committed
fix cyclotron rust dependencies for ci
1 parent 5f5eb8f commit 5d8f386

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/scripts/defaults.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ LOCAL_CHECKOUT_DIR=$GITHUB_WORKSPACE
1414
LOCAL_CHIPYARD_DIR=$REMOTE_WORK_DIR
1515
LOCAL_SIM_DIR=$LOCAL_CHIPYARD_DIR/sims/vcs
1616

17+
export CARGO_HOME=$HOME/.cargo
18+
export RUSTUP_HOME=$HOME/.rustup
19+
export PATH=$HOME/.cargo/bin:$PATH
20+
1721
CICONFIG=chipyard.config.WithNoDebug_GemminiRocketConfig
1822

1923
# Branches used by install-gemmini.sh. The chipyard branch needs the

.github/scripts/install-gemmini.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@ git submodule update --init generators/gemmini
2121
git -C generators/gemmini fetch origin
2222
git -C generators/gemmini checkout $GEMMINI_SUBMODULE_BRANCH
2323

24-
# Radiance generator is needed by RadianceGemminiOnlyConfig; pin it to main
25-
# so the verilator elaborate picks up the matching radiance side of MX work.
26-
git submodule update --init generators/radiance
24+
git submodule update --init --recursive generators/radiance
2725
git -C generators/radiance fetch origin
2826
git -C generators/radiance checkout $RADIANCE_SUBMODULE_BRANCH
27+
git -C generators/radiance submodule update --init --recursive
28+
29+
export RUSTUP_USE_CURL=1
30+
export CURL_IPRESOLVE=4
31+
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
32+
export CARGO_NET_RETRY=10
33+
export CARGO_HTTP_TIMEOUT=60
34+
(cd generators/radiance/cyclotron && cargo fetch)
2935

3036
export MAKEFLAGS="-j32"
3137
./build-setup.sh riscv-tools -s 6 -s 7 -s 8 -s 9 -v

0 commit comments

Comments
 (0)