modify profile.release and build yml

This commit is contained in:
houseme
2025-06-09 11:43:00 +08:00
parent 1d2aeb288a
commit a64bd436c8
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -107,10 +107,10 @@ jobs:
# Set up Zig for cross-compilation
- 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
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
- name: Download and Extract Static Assets
@@ -150,7 +150,7 @@ jobs:
# Determine whether to use zigbuild
USE_ZIGBUILD=false
if [[ "$GLIBC" != "default" || "$TARGET" == *"linux"* ]]; then
if [[ "$GLIBC" != "default" || "$TARGET" == *"aarch64-unknown-linux"* ]]; then
USE_ZIGBUILD=true
echo "Using zigbuild for cross-compilation"
fi
+4 -4
View File
@@ -237,10 +237,10 @@ inherits = "dev"
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
panic = "abort" # Optional, remove the panic expansion code
strip = true # strip symbol information to reduce binary size
#lto = "thin"
#codegen-units = 1
#panic = "abort" # Optional, remove the panic expansion code
#strip = true # strip symbol information to reduce binary size
[profile.production]
inherits = "release"