From 070aa8cb39e43659db287618646ba4ef75b2f45e Mon Sep 17 00:00:00 2001 From: wuhuiquan Date: Tue, 7 Jan 2025 10:52:18 +0800 Subject: [PATCH] [CI] add rust static source download time and update readme document Signed-off-by: wuhuiquan --- rust-build/README.md | 2 +- rust-build/function.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rust-build/README.md b/rust-build/README.md index 0addf7a5f84..87e7652cedd 100644 --- a/rust-build/README.md +++ b/rust-build/README.md @@ -46,7 +46,7 @@ python3 ./build/scripts/download_sdk.py --branch OpenHarmony-5.0.0-Release --pro 3、download build code ``` -git clone --depth=1 https://gitee.com/openharmony/third_party_llvm-project.git llvm +git clone --depth=1 https://gitee.com/openharmony/third_party_llvm-project.git third_party/llvm-project git clone --depth=1 https://gitee.com/openharmony-sig/third_party_rust_rust.git third_party/rust/rust ``` diff --git a/rust-build/function.sh b/rust-build/function.sh index 5c0fbd85933..f4a3a68a5f3 100644 --- a/rust-build/function.sh +++ b/rust-build/function.sh @@ -97,10 +97,11 @@ download_rust_static_source() { curl -O -k -m 300 ${rust_down_net}/1.71.0/${file} & fi done + wait + if [ ! -e "rustc-1.72.0-src.tar.gz" ]; then - curl -O -k -m 300 ${rust_down_net}/1.72.0/rustc-1.72.0-src.tar.gz & + curl -O -k -m 600 ${rust_down_net}/1.72.0/rustc-1.72.0-src.tar.gz fi - wait popd cp ${rust_static_dir}/*.tar.xz ${rust_source_dir}/build/cache/${pre_rust_date}/ cp ${rust_static_dir}/rustc-1.72.0-src.tar.gz ${root_build_dir} -- Gitee