From 2478a4eb914082fd46b9f09aead85e1e019666db Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 22 Sep 2019 10:17:50 +0200 Subject: [PATCH] Add lto = "true" to CI --- .github/workflows/rust.yml | 4 ++-- README.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 31c814c..1fe5640 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,10 +17,10 @@ jobs: run: rustup default | grep nightly - name: Build run: | - cargo build --release + echo 'lto = "true"' >> Cargo.toml + env RUSTFLAGS="-C link-arg=-s" cargo build --release mkdir encrypted-dns mv target/release/encrypted-dns encrypted-dns/ - strip encrypted-dns/encrypted-dns cp README.md encrypted-dns.toml encrypted-dns/ - uses: actions/upload-artifact@master with: diff --git a/README.md b/README.md index 1ac5617..24a971c 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ Once rust is installed, the proxy can be compiled and installed as follows: ```sh cargo install encrypted-dns +strip ~/.cargo/bin/encrypted-dns ``` The executable file will be copied to `~/.cargo/bin/encrypted-dns` by default.