Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
add UPX压缩
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoo committed Jun 18, 2021
1 parent 0e635f0 commit 2ca46c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
run: |
go mod tidy
go test -v ./...
-
name: Install UPX
if: success() && startsWith(github.ref, 'refs/tags/')
run: |
sudo apt-get install upx-ucl
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ builds:
ignore:
- goos: android
goarch: 386
hooks:
post: upx --brute {{ .Path }}
archives:
-
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
Expand Down

0 comments on commit 2ca46c0

Please sign in to comment.