Add lto = "true" to CI

pull/5/head
Frank Denis 5 years ago
parent aebce1ee1d
commit 2478a4eb91

@ -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:

@ -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.

Loading…
Cancel
Save