From 06725cfebf687f754b3ed15559cdf2143e09d791 Mon Sep 17 00:00:00 2001 From: Morgan Fainberg Date: Tue, 19 Dec 2023 14:54:36 -0800 Subject: [PATCH] Try implement UPX compression --- .github/workflows/ci.yaml | 4 ++++ .goreleaser.yaml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9773f5a..476ae04 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -85,6 +85,10 @@ jobs: name: "Checkout" with: fetch-depth: 0 + - name: Install UPX + uses: crazy-max/ghaction-upx@v3 + with: + install-only: true - uses: actions/setup-go@v5 name: "Set up Go" with: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 974ec52..7425ab7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -36,6 +36,12 @@ changelog: exclude: - "^docs:" - "^test:" +upx: + - enabled: true + goos: [linux] + goarch: [amd64, arm64] + compress: best + brute: true release: # If set to auto, will mark the release as not ready for production # in case there is an indicator for this in the tag e.g. v1.0.0-alpha