mirror of
https://github.com/EasyTier/EasyTier.git
synced 2025-10-05 08:47:01 +08:00
Update install_rust.sh (#237)
This commit is contained in:
7
.github/workflows/install_rust.sh
vendored
7
.github/workflows/install_rust.sh
vendored
@@ -72,6 +72,13 @@ if [[ $OS =~ ^ubuntu.*$ && $TARGET =~ ^mips.*$ ]]; then
|
|||||||
|
|
||||||
rustup toolchain install nightly-x86_64-unknown-linux-gnu
|
rustup toolchain install nightly-x86_64-unknown-linux-gnu
|
||||||
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
|
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
|
# https://github.com/rust-lang/rust/issues/128808
|
||||||
|
# remove it after Cargo or rustc fix this.
|
||||||
|
RUST_LIB_SRC=$HOME/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/
|
||||||
|
if [[ -f $RUST_LIB_SRC/library/Cargo.lock && ! -f $RUST_LIB_SRC/Cargo.lock ]]; then
|
||||||
|
cp -f $RUST_LIB_SRC/library/Cargo.lock $RUST_LIB_SRC/Cargo.lock
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
rustup target add $TARGET
|
rustup target add $TARGET
|
||||||
if [[ $GUI_TARGET != '' ]]; then
|
if [[ $GUI_TARGET != '' ]]; then
|
||||||
|
Reference in New Issue
Block a user