chore: strip was stabilized

This commit is contained in:
eric
2022-04-19 02:23:41 +08:00
parent 806fc61b59
commit 5a6c4cec96
5 changed files with 2 additions and 8 deletions

View File

@@ -62,7 +62,6 @@ jobs:
run: |
export CFG_COMMIT_HASH=`git log --pretty=format:'%h' -n 1`
export CFG_COMMIT_DATE=`git log --format="%ci" -n 1`
export RUSTFLAGS="-Z strip=symbols"
./misc/build_cross.sh ${{ matrix.target }}
- name: rename and compress artifacts
@@ -121,7 +120,6 @@ jobs:
run: |
export CFG_COMMIT_HASH=`git log --pretty=format:'%h' -n 1`
export CFG_COMMIT_DATE=`git log --format="%ci" -n 1`
export RUSTFLAGS="-Z strip=symbols"
cargo build --release --target ${{ matrix.target }} -p leaf-bin
- name: rename and compress artifacts
@@ -156,7 +154,6 @@ jobs:
#
# - name: build
# run: |
# export RUSTFLAGS="-Z strip=symbols"
# make ios
#
# - name: zip artifacts

View File

@@ -42,7 +42,6 @@ jobs:
run: |
export CFG_COMMIT_HASH=`git log --pretty=format:'%h' -n 1`
export CFG_COMMIT_DATE=`git log --format="%ci" -n 1`
export RUSTFLAGS="-Z strip=symbols"
./misc/build_cross.sh ${{ matrix.target }}
- name: rename and compress artifacts
@@ -97,7 +96,6 @@ jobs:
run: |
export CFG_COMMIT_HASH=`git log --pretty=format:'%h' -n 1`
export CFG_COMMIT_DATE=`git log --format="%ci" -n 1`
export RUSTFLAGS="-Z strip=symbols"
cargo build --release --target ${{ matrix.target }} -p leaf-bin
- name: rename and compress artifacts
@@ -132,7 +130,6 @@ jobs:
#
# - name: build
# run: |
# export RUSTFLAGS="-Z strip=symbols"
# make ios
#
# - name: zip artifacts

View File

@@ -12,6 +12,7 @@ opt-level = 3
lto = true
# codegen-units = 1
panic = "abort"
strip = "symbols"
[profile.dev]
opt-level = 0

View File

@@ -2,5 +2,4 @@
passthrough = [
"CFG_COMMIT_HASH",
"CFG_COMMIT_DATE",
"RUSTFLAGS",
]

View File

@@ -7,7 +7,7 @@ ios-dev:
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/universal/debug/leaf.h
ios-opt:
RUSTFLAGS="-Z strip=symbols" cargo lipo --release --targets aarch64-apple-ios --manifest-path leaf-ffi/Cargo.toml --no-default-features --features "default-openssl"
cargo lipo --release --targets aarch64-apple-ios --manifest-path leaf-ffi/Cargo.toml --no-default-features --features "default-openssl"
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/universal/release/leaf.h
lib: