Skip to content

Commit 99c0446

Browse files
committed
Do not UPX windows and darwin/arm64 binaries
1 parent fd5905b commit 99c0446

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

.goreleaser.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ before:
55
- go mod download
66
builds:
77
- main: ./main.go
8+
id: upx
89
env:
910
- CGO_ENABLED=0
1011
flags:
1112
- -trimpath
1213
ldflags:
1314
- -w -s -X "librespeed-cli/defs.ProgName={{ .ProjectName }}" -X "librespeed-cli/defs.ProgVersion=v{{ .Version }}" -X "librespeed-cli/defs.BuildDate={{ .Date }}"
1415
goos:
15-
- windows
1616
- linux
1717
- darwin
1818
- freebsd
@@ -35,8 +35,30 @@ builds:
3535
ignore:
3636
- goos: darwin
3737
goarch: 386
38+
- goos: darwin
39+
goarch: arm64
3840
hooks:
3941
post: ./upx.sh -9 "{{ .Path }}"
42+
- main: ./main.go
43+
id: no-upx
44+
env:
45+
- CGO_ENABLED=0
46+
flags:
47+
- -trimpath
48+
ldflags:
49+
- -w -s -X "librespeed-cli/defs.ProgName={{ .ProjectName }}" -X "librespeed-cli/defs.ProgVersion=v{{ .Version }}" -X "librespeed-cli/defs.BuildDate={{ .Date }}"
50+
goos:
51+
- windows
52+
- darwin
53+
goarch:
54+
- 386
55+
- amd64
56+
- arm64
57+
ignore:
58+
- goos: darwin
59+
goarch: 386
60+
- goos: darwin
61+
goarch: amd64
4062
archives:
4163
- format_overrides:
4264
- goos: windows
@@ -48,19 +70,6 @@ checksum:
4870
changelog:
4971
skip: false
5072
sort: asc
51-
brews:
52-
- github:
53-
owner: librespeed
54-
name: homebrew-tap
55-
commit_author:
56-
name: "Maddie Zhan"
57-
58-
folder: Formula
59-
homepage: "https://github.com/librespeed/speedtest-cli"
60-
description: "Command-line client for LibreSpeed"
61-
skip_upload: true
62-
custom_block: |
63-
head "https://github.com/librespeed/speedtest-cli.git"
6473
release:
6574
github:
6675
owner: librespeed

0 commit comments

Comments
 (0)