Skip to content

Commit cf43b97

Browse files
committed
build: use UPX
1 parent 087f613 commit cf43b97

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ jobs:
5454
username: ${{ secrets.DOCKERHUB_USERNAME }}
5555
password: ${{ secrets.DOCKERHUB_TOKEN }}
5656

57+
- name: Install UPX
58+
if: ${{ steps.release.outputs.release_created }}
59+
uses: crazy-max/ghaction-upx@v3
60+
with:
61+
install-only: true
62+
5763
- name: Go Release
5864
if: ${{ steps.release.outputs.release_created }}
5965
uses: goreleaser/goreleaser-action@v4

.goreleaser.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,11 @@ checksum:
112112
name_template: 'checksums.txt'
113113
snapshot:
114114
name_template: "{{ .Version }}-next"
115+
116+
upx:
117+
- enabled: true
118+
ids:
119+
- goet
120+
goos:
121+
- linux
122+
- windows

0 commit comments

Comments
 (0)