Use upx for goreleaser
This commit is contained in:
parent
caa444f059
commit
f1e525a78d
|
|
@ -83,6 +83,10 @@ jobs:
|
||||||
filename: "ssh_private_key"
|
filename: "ssh_private_key"
|
||||||
working-directory: "./resources"
|
working-directory: "./resources"
|
||||||
|
|
||||||
|
- uses: Install upx
|
||||||
|
with:
|
||||||
|
apt: upx
|
||||||
|
|
||||||
- name: Install garble
|
- name: Install garble
|
||||||
run: make install-deps
|
run: make install-deps
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ before:
|
||||||
# You may remove this if you don't use go modules.
|
# You may remove this if you don't use go modules.
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
# you may remove this if you don't need go generate
|
# you may remove this if you don't need go generate
|
||||||
- go generate ./...
|
# - go generate ./...
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
- id: "win-amd64-dll-release"
|
- id: "win-amd64-dll-release"
|
||||||
|
|
@ -46,6 +46,37 @@ builds:
|
||||||
tags:
|
tags:
|
||||||
- release
|
- release
|
||||||
|
|
||||||
|
upx:
|
||||||
|
- # Whether to enable it or not.
|
||||||
|
#
|
||||||
|
# Templates: allowed.
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
# Filter by build ID.
|
||||||
|
#ids: [build1, build2]
|
||||||
|
|
||||||
|
# Filter by GOOS.
|
||||||
|
goos: [windows]
|
||||||
|
|
||||||
|
# Filter by GOARCH.
|
||||||
|
goarch: [amd64]
|
||||||
|
|
||||||
|
# Filter by GOARM.
|
||||||
|
# goarm: [8]
|
||||||
|
|
||||||
|
# Filter by GOAMD64.
|
||||||
|
# goamd64: [v1]
|
||||||
|
|
||||||
|
# Compress argument.
|
||||||
|
# Valid options are from '1' (faster) to '9' (better), and 'best'.
|
||||||
|
compress: best
|
||||||
|
|
||||||
|
# Whether to try LZMA (slower).
|
||||||
|
lzma: true
|
||||||
|
|
||||||
|
# Whether to try all methods and filters (slow).
|
||||||
|
brute: true
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- format: tar.gz
|
- format: tar.gz
|
||||||
# this name template makes the OS and Arch compatible with the results of `uname`.
|
# this name template makes the OS and Arch compatible with the results of `uname`.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue