mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
modify profile.release and build yml
This commit is contained in:
@@ -107,10 +107,10 @@ jobs:
|
|||||||
|
|
||||||
# Set up Zig for cross-compilation
|
# Set up Zig for cross-compilation
|
||||||
- uses: mlugg/setup-zig@v2
|
- uses: mlugg/setup-zig@v2
|
||||||
if: matrix.variant.glibc != 'default' || contains(matrix.variant.target, 'linux')
|
if: matrix.variant.glibc != 'default' || contains(matrix.variant.target, 'aarch64-unknown-linux')
|
||||||
|
|
||||||
- uses: taiki-e/install-action@cargo-zigbuild
|
- uses: taiki-e/install-action@cargo-zigbuild
|
||||||
if: matrix.variant.glibc != 'default' || contains(matrix.variant.target, 'linux')
|
if: matrix.variant.glibc != 'default' || contains(matrix.variant.target, 'aarch64-unknown-linux')
|
||||||
|
|
||||||
# Download static resources
|
# Download static resources
|
||||||
- name: Download and Extract Static Assets
|
- name: Download and Extract Static Assets
|
||||||
@@ -150,7 +150,7 @@ jobs:
|
|||||||
|
|
||||||
# Determine whether to use zigbuild
|
# Determine whether to use zigbuild
|
||||||
USE_ZIGBUILD=false
|
USE_ZIGBUILD=false
|
||||||
if [[ "$GLIBC" != "default" || "$TARGET" == *"linux"* ]]; then
|
if [[ "$GLIBC" != "default" || "$TARGET" == *"aarch64-unknown-linux"* ]]; then
|
||||||
USE_ZIGBUILD=true
|
USE_ZIGBUILD=true
|
||||||
echo "Using zigbuild for cross-compilation"
|
echo "Using zigbuild for cross-compilation"
|
||||||
fi
|
fi
|
||||||
|
|||||||
+4
-4
@@ -237,10 +237,10 @@ inherits = "dev"
|
|||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
lto = "thin"
|
#lto = "thin"
|
||||||
codegen-units = 1
|
#codegen-units = 1
|
||||||
panic = "abort" # Optional, remove the panic expansion code
|
#panic = "abort" # Optional, remove the panic expansion code
|
||||||
strip = true # strip symbol information to reduce binary size
|
#strip = true # strip symbol information to reduce binary size
|
||||||
|
|
||||||
[profile.production]
|
[profile.production]
|
||||||
inherits = "release"
|
inherits = "release"
|
||||||
|
|||||||
Reference in New Issue
Block a user