mirror of https://github.com/milvus-io/milvus.git
enhance: upgrade rust version to 1.83 (#39295)
#39254 Signed-off-by: sunby <sunbingyi1992@gmail.com>pull/36416/head
parent
e55d6506e3
commit
cb959cd1f9
|
@ -58,7 +58,7 @@ RUN mkdir -p /home/milvus/.vscode-server/extensions \
|
|||
COPY --chown=0:0 build/docker/builder/entrypoint.sh /
|
||||
|
||||
RUN curl https://sh.rustup.rs -sSf | \
|
||||
sh -s -- --default-toolchain=1.73 -y
|
||||
sh -s -- --default-toolchain=1.83 -y
|
||||
|
||||
ENV PATH=/root/.cargo/bin:$PATH
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ RUN dnf -y update && \
|
|||
RUN pip3 install conan==1.64.1
|
||||
RUN mkdir -p /usr/local/go && wget -qO- "https://go.dev/dl/go1.21.11.linux-$TARGETARCH.tar.gz" | tar --strip-components=1 -xz -C /usr/local/go
|
||||
RUN curl https://sh.rustup.rs -sSf | \
|
||||
sh -s -- --default-toolchain=1.73 -y
|
||||
sh -s -- --default-toolchain=1.83 -y
|
||||
|
||||
ENV PATH=/root/.cargo/bin:/usr/local/bin:/usr/local/go/bin:$PATH
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ RUN mkdir -p /home/milvus/.vscode-server/extensions \
|
|||
COPY --chown=0:0 build/docker/builder/entrypoint.sh /
|
||||
|
||||
RUN curl https://sh.rustup.rs -sSf | \
|
||||
sh -s -- --default-toolchain=1.73 -y
|
||||
sh -s -- --default-toolchain=1.83 -y
|
||||
|
||||
ENV PATH=/root/.cargo/bin:$PATH
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ RUN mkdir -p /home/milvus/.vscode-server/extensions \
|
|||
COPY --chown=0:0 build/docker/builder/entrypoint.sh /
|
||||
|
||||
RUN curl https://sh.rustup.rs -sSf | \
|
||||
sh -s -- --default-toolchain=1.73 -y
|
||||
sh -s -- --default-toolchain=1.83 -y
|
||||
|
||||
ENV PATH=/root/.cargo/bin:$PATH
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ RUN wget -O /tini https://github.com/krallin/tini/releases/download/v0.19.0/tini
|
|||
chmod +x /tini
|
||||
|
||||
RUN curl https://sh.rustup.rs -sSf | \
|
||||
sh -s -- --default-toolchain=1.73 -y
|
||||
sh -s -- --default-toolchain=1.83 -y
|
||||
|
||||
ENV PATH=/root/.cargo/bin:$PATH
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ RUN mkdir -p /usr/local/go && wget -qO- "https://go.dev/dl/go1.21.11.linux-$TARG
|
|||
RUN pip3 install conan==1.64.1
|
||||
# Install rust
|
||||
RUN curl https://sh.rustup.rs -sSf | \
|
||||
sh -s -- --default-toolchain=1.73 -y
|
||||
sh -s -- --default-toolchain=1.83 -y
|
||||
ENV PATH=/root/.cargo/bin:/usr/local/bin:/usr/local/go/bin:$PATH
|
||||
|
||||
RUN mkdir /opt/vcpkg && \
|
||||
|
|
|
@ -18,10 +18,10 @@ set(GIT_REPOSITORY "https://github.com/apache/opendal.git")
|
|||
set(GIT_TAG "v0.43.0-rc.2")
|
||||
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
set(CARGO_CMD cargo +1.73 build --verbose)
|
||||
set(CARGO_CMD cargo +1.83 build --verbose)
|
||||
set(TARGET_DIR "debug")
|
||||
else ()
|
||||
set(CARGO_CMD cargo +1.73 build --release --verbose)
|
||||
set(CARGO_CMD cargo +1.83 build --release --verbose)
|
||||
set(TARGET_DIR "release")
|
||||
endif ()
|
||||
|
||||
|
|
|
@ -91,15 +91,15 @@ if command -v cargo >/dev/null 2>&1; then
|
|||
unameOut="$(uname -s)"
|
||||
case "${unameOut}" in
|
||||
Darwin*)
|
||||
echo "running on mac os, reinstall rust 1.73"
|
||||
echo "running on mac os, reinstall rust 1.83"
|
||||
# github will install rust 1.74 by default.
|
||||
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
|
||||
rustup install 1.73
|
||||
rustup default 1.73;;
|
||||
rustup install 1.83
|
||||
rustup default 1.83;;
|
||||
*)
|
||||
echo "not running on mac os, no need to reinstall rust";;
|
||||
esac
|
||||
else
|
||||
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.73 -y" || { echo 'rustup install failed'; exit 1;}
|
||||
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.83 -y" || { echo 'rustup install failed'; exit 1;}
|
||||
source $HOME/.cargo/env
|
||||
fi
|
||||
|
|
|
@ -55,10 +55,10 @@ function install_linux_deps() {
|
|||
# install rust
|
||||
if command -v cargo >/dev/null 2>&1; then
|
||||
echo "cargo exists"
|
||||
rustup install 1.73
|
||||
rustup default 1.73
|
||||
rustup install 1.83
|
||||
rustup default 1.83
|
||||
else
|
||||
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.73 -y" || { echo 'rustup install failed'; exit 1;}
|
||||
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.83 -y" || { echo 'rustup install failed'; exit 1;}
|
||||
source $HOME/.cargo/env
|
||||
fi
|
||||
}
|
||||
|
@ -80,10 +80,10 @@ function install_mac_deps() {
|
|||
# install rust
|
||||
if command -v cargo >/dev/null 2>&1; then
|
||||
echo "cargo exists"
|
||||
rustup install 1.73
|
||||
rustup default 1.73
|
||||
rustup install 1.83
|
||||
rustup default 1.83
|
||||
else
|
||||
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.73 -y" || { echo 'rustup install failed'; exit 1;}
|
||||
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.83 -y" || { echo 'rustup install failed'; exit 1;}
|
||||
source $HOME/.cargo/env
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue