Use upx for goreleaser

This commit is contained in:
Jerry Jacobs 2024-07-26 23:14:16 +02:00
parent caa444f059
commit f1e525a78d
2 changed files with 36 additions and 1 deletions

View File

@ -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

View File

@ -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`.