From 723721d9b39af60e684bb30f017f473fb071b96b Mon Sep 17 00:00:00 2001 From: Patrick Kerwood Date: Mon, 18 Apr 2022 16:36:23 +0200 Subject: [PATCH] Version bump and optimized binary size --- .github/workflows/build-n-release.yml | 2 +- Cargo.lock | 2 +- Cargo.toml | 10 ++++++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-n-release.yml b/.github/workflows/build-n-release.yml index c3aff52..ce19d0a 100644 --- a/.github/workflows/build-n-release.yml +++ b/.github/workflows/build-n-release.yml @@ -44,7 +44,7 @@ jobs: sudo apt update && sudo apt install musl-tools rustup target add x86_64-unknown-linux-musl cargo build --release --target x86_64-unknown-linux-musl - strip target/x86_64-unknown-linux-musl/release/${{ env.app-name }} + upx --best --lzma target/x86_64-unknown-linux-musl/release/${{ env.app-name }} mv target/x86_64-unknown-linux-musl/release/${{ env.app-name }} target/x86_64-unknown-linux-musl/release/${{ env.app-name }}-x86_64-unknown-linux-musl - name: Upload binaries to release uses: svenstaro/upload-release-action@v1-release diff --git a/Cargo.lock b/Cargo.lock index c49aa47..567631f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -177,7 +177,7 @@ dependencies = [ [[package]] name = "confluence-updater" -version = "0.1.0" +version = "1.1.0" dependencies = [ "comrak", "futures", diff --git a/Cargo.toml b/Cargo.toml index 0d7b7aa..f9c205c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "confluence-updater" -version = "0.1.0" +version = "1.1.0" edition = "2018" [[bin]] @@ -18,4 +18,10 @@ comrak = "0.12.1" futures = "0.3.17" serde_yaml = "0.8.21" sha2 = "0.10.2" -hex = "0.4.3" \ No newline at end of file +hex = "0.4.3" + +[profile.release] +lto = true +opt-level = "z" +codegen-units = 1 +panic = "abort" \ No newline at end of file