From 46e1f718bb70ac2406f1bb1270f29fb3b5e6576b Mon Sep 17 00:00:00 2001 From: Yoandy Rodriguez Date: Tue, 18 Aug 2020 22:32:32 -0400 Subject: [PATCH] fix: optimize release --- .github/workflows/release.yml | 4 ++-- Cargo.toml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9bbbcb6..e4ca415 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,11 +20,11 @@ jobs: - name: linux os: ubuntu-latest artifact_name: awstail - asset_name: awstail-linux + asset_name: awstail - name: windows os: windows-latest artifact_name: awstail.exe - asset_name: awstail-windows + asset_name: awstail.exe steps: - uses: actions/checkout@v1 diff --git a/Cargo.toml b/Cargo.toml index e19c2e9..90303db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,3 +24,8 @@ futures = "0.3" tokio = { version = "0.2.22", features = ["macros"] } futures-util = "0.3.5" anyhow = "1.0" +[profile.release] +opt-level = 'z' +lto = true +codegen-units = 1 +panic = 'abort'