Skip to content

Commit

Permalink
build: use UPX
Browse files Browse the repository at this point in the history
  • Loading branch information
MuXiu1997 committed Dec 28, 2023
1 parent 087f613 commit cf43b97
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Install UPX
if: ${{ steps.release.outputs.release_created }}
uses: crazy-max/ghaction-upx@v3
with:
install-only: true

- name: Go Release
if: ${{ steps.release.outputs.release_created }}
uses: goreleaser/goreleaser-action@v4
Expand Down
8 changes: 8 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,11 @@ checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Version }}-next"

upx:
- enabled: true
ids:
- goet
goos:
- linux
- windows

0 comments on commit cf43b97

Please sign in to comment.