From c9620caaeb6e1cabde09bdce644944e589ced7c6 Mon Sep 17 00:00:00 2001 From: Satont <42675886+Satont@users.noreply.github.com> Date: Wed, 2 Nov 2022 16:54:29 +0300 Subject: [PATCH] feat: improve binary size by adding ldflags and use `upx` --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c0ea2a..7b5d5e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,4 +31,6 @@ jobs: sha256sum: "TRUE" overwrite: "TRUE" compress_assets: "FALSE" - asset_name: create-grammy-${{ matrix.goos }}-${{ matrix.goarch }} \ No newline at end of file + asset_name: create-grammy-${{ matrix.goos }}-${{ matrix.goarch }} + executable_compression: "upx -9 -k" + ldflags: "-s -w"