mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 01:30:33 +00:00
* chore(ci): upgrade protoc from 30.2 to 31.1 - Update protoc version in GitHub Actions setup workflow - Use arduino/setup-protoc@v3 to install the latest protoc version - Ensure compatibility with current project requirements - Improve proto file compilation performance and stability This upgrade aligns our development environment with the latest protobuf standards. * modify package version * refactor(deps): centralize crate versions in root Cargo.toml - Move all dependency versions to workspace.dependencies section - Standardize AWS SDK and related crates versions - Update tokio, bytes, and futures crates to latest stable versions - Ensure consistent version use across all workspace members - Implement workspace inheritance for common dependencies This change simplifies dependency management and ensures version consistency across the project. * fix * modify
22 lines
480 B
Bash
Executable File
22 lines
480 B
Bash
Executable File
#!/bin/bash
|
|
clear
|
|
|
|
# Get the current platform architecture
|
|
ARCH=$(uname -m)
|
|
|
|
# Set the target directory according to the schema
|
|
if [ "$ARCH" == "x86_64" ]; then
|
|
TARGET_DIR="target/x86_64"
|
|
elif [ "$ARCH" == "aarch64" ]; then
|
|
TARGET_DIR="target/arm64"
|
|
else
|
|
TARGET_DIR="target/unknown"
|
|
fi
|
|
|
|
# Set CARGO_TARGET_DIR and build the project
|
|
CARGO_TARGET_DIR=$TARGET_DIR RUSTFLAGS="-C link-arg=-fuse-ld=mold" cargo build --package rustfs
|
|
|
|
echo -e "\a"
|
|
echo -e "\a"
|
|
echo -e "\a"
|