From 5d7b91e656a1244ad3e0a4dc60d7597c305de656 Mon Sep 17 00:00:00 2001 From: M09Ic Date: Wed, 7 Feb 2024 01:55:42 +0800 Subject: [PATCH] enable upx release --- .github/workflows/gorelease.yml | 5 +++++ .goreleaser.yml | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gorelease.yml b/.github/workflows/gorelease.yml index 3f3602a..7f8258a 100644 --- a/.github/workflows/gorelease.yml +++ b/.github/workflows/gorelease.yml @@ -17,6 +17,11 @@ jobs: fetch-depth: 0 token: ${{ secrets.GITHUB_TOKEN }} submodules: recursive + + - name: Install upx + run: sudo apt install upx -y + continue-on-error: true + - name: Set up Go uses: actions/setup-go@v3 diff --git a/.goreleaser.yml b/.goreleaser.yml index a460869..d86356a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -32,11 +32,11 @@ builds: gcflags: - all=-trimpath={{.Env.GOPATH}} no_unique_dist_dir: true + upx: - - # Whether to enable it or not. - # - # Templates: allowed (since v1.21) + - enabled: true + goos: [linux, windows] archives: -