Skip to content

Commit cc59a42

Browse files
committed
Use git clone --filter=tree:0 to speed up rust clones in CI
1 parent dd25686 commit cc59a42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/setup_rust_fork.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export CG_CLIF_FORCE_GNU_AS=1
1111
CG_CLIF_STDLIB_REMAP_PATH_PREFIX=/rustc/FAKE_PREFIX ./y.sh build
1212

1313
echo "[SETUP] Rust fork"
14-
git clone https://github.com/rust-lang/rust.git || true
14+
git clone https://github.com/rust-lang/rust.git --filter=tree:0 || true
1515
pushd rust
1616
git fetch
1717
git checkout -- .

0 commit comments

Comments
 (0)