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