enhance: update rust version (#44322)

relate: https://github.com/milvus-io/milvus/issues/44321

Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
aoiasd 2025-09-12 10:53:57 +08:00 committed by GitHub
parent 662397e487
commit fb58701cbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 20 additions and 20 deletions

View File

@ -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.83 -y
sh -s -- --default-toolchain=1.89 -y
ENV PATH=/root/.cargo/bin:$PATH

View File

@ -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.24.4.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.83 -y
sh -s -- --default-toolchain=1.89 -y
ENV PATH=/root/.cargo/bin:/usr/local/bin:/usr/local/go/bin:$PATH

View File

@ -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.83 -y
sh -s -- --default-toolchain=1.89 -y
ENV PATH=/root/.cargo/bin:$PATH

View File

@ -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.83 -y
sh -s -- --default-toolchain=1.89 -y
ENV PATH=/root/.cargo/bin:$PATH

View File

@ -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.83 -y
sh -s -- --default-toolchain=1.89 -y
ENV PATH=/root/.cargo/bin:$PATH

View File

@ -18,7 +18,7 @@ RUN mkdir -p /usr/local/go && wget -qO- "https://go.dev/dl/go1.24.4.linux-$TARGE
RUN pip3 install conan==1.64.1
# Install rust
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain=1.83 -y
sh -s -- --default-toolchain=1.89 -y
ENV PATH=/root/.cargo/bin:/usr/local/bin:/usr/local/go/bin:$PATH
RUN mkdir /opt/vcpkg && \

View File

@ -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.83 build --verbose)
set(CARGO_CMD cargo +1.89 build --verbose)
set(TARGET_DIR "debug")
else ()
set(CARGO_CMD cargo +1.83 build --release --verbose)
set(CARGO_CMD cargo +1.89 build --release --verbose)
set(TARGET_DIR "release")
endif ()

View File

@ -2,10 +2,10 @@ set(TANTIVY_FEATURES_LIST "" CACHE STRING "List of Cargo features to enable")
string(REPLACE ";" "," TANTIVY_FEATURES "${TANTIVY_FEATURES_LIST}")
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CARGO_CMD cargo build)
set(CARGO_CMD cargo +1.89 build --verbose)
set(TARGET_DIR "debug")
else ()
set(CARGO_CMD cargo build --release)
set(CARGO_CMD cargo +1.89 build --release --verbose)
set(TARGET_DIR "release")
endif ()

View File

@ -136,15 +136,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.83"
echo "running on mac os, reinstall rust 1.89"
# 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.83
rustup default 1.83;;
rustup install 1.89
rustup default 1.89;;
*)
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.83 -y" || { echo 'rustup install failed'; exit 1;}
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.89 -y" || { echo 'rustup install failed'; exit 1;}
source $HOME/.cargo/env
fi

View File

@ -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.83
rustup default 1.83
rustup install 1.89
rustup default 1.89
else
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.83 -y" || { echo 'rustup install failed'; exit 1;}
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.89 -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.83
rustup default 1.83
rustup install 1.89
rustup default 1.89
else
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.83 -y" || { echo 'rustup install failed'; exit 1;}
bash -c "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.89 -y" || { echo 'rustup install failed'; exit 1;}
source $HOME/.cargo/env
fi
}