Skip to content

Commit

Permalink
enable strip=symbols for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Jan 31, 2022
1 parent 7eb76af commit 161d87e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
RUSTFLAGS: "-C strip=symbols"
strategy:
matrix:
target:
Expand Down Expand Up @@ -66,6 +67,7 @@ jobs:
env:
BUILD_EXTRA_FEATURES: "local-redir local-tun armv8 neon"
RUST_BACKTRACE: full
RUSTFLAGS: "-C strip=symbols"
strategy:
matrix:
os: [macos-latest]
Expand Down Expand Up @@ -111,7 +113,7 @@ jobs:
build-windows:
runs-on: windows-latest
env:
RUSTFLAGS: "-Ctarget-feature=+crt-static"
RUSTFLAGS: "-C target-feature=+crt-static -C strip=symbols"
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
RUSTFLAGS: "-C strip=symbols"
strategy:
matrix:
target:
Expand Down Expand Up @@ -80,6 +81,7 @@ jobs:
env:
BUILD_EXTRA_FEATURES: "local-redir local-tun armv8 neon"
RUST_BACKTRACE: full
RUSTFLAGS: "-C strip=symbols"
strategy:
matrix:
# os: [ubuntu-latest, macos-latest]
Expand Down Expand Up @@ -128,7 +130,7 @@ jobs:
build-windows:
runs-on: windows-latest
env:
RUSTFLAGS: "-Ctarget-feature=+crt-static"
RUSTFLAGS: "-C target-feature=+crt-static -C strip=symbols"
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN rustup install nightly && rustup default nightly && \
wget -qO- "https://musl.cc/$MUSL-cross.tgz" | tar -xzC /root/ && \
CC=/root/$MUSL-cross/bin/$MUSL-gcc && \
rustup target add $RUST_TARGET && \
RUSTFLAGS="-C linker=$CC" CC=$CC cargo build --target "$RUST_TARGET" --release --features "local-tun local-redir armv8 neon" && \
RUSTFLAGS="-C linker=$CC -C strip=symbols" CC=$CC cargo build --target "$RUST_TARGET" --release --features "local-tun local-redir armv8 neon" && \
mv target/$RUST_TARGET/release/ss* target/release/

FROM alpine:3.14 AS sslocal
Expand Down
2 changes: 1 addition & 1 deletion crates/shadowsocks-service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shadowsocks-service"
version = "1.13.0"
version = "1.13.1"
authors = ["Shadowsocks Contributors"]
description = "shadowsocks is a fast tunnel proxy that helps you bypass firewalls."
repository = "https://github.com/shadowsocks/shadowsocks-rust"
Expand Down

0 comments on commit 161d87e

Please sign in to comment.