fix: skip upx for darwin/arm64 target

This commit is contained in:
Maddie Zhan
2026-04-30 14:26:02 +08:00
parent 7ff3ef4bfb
commit 7bbfadeeed
+14 -3
View File
@@ -17,7 +17,6 @@ builds:
goos: goos:
- windows - windows
- linux - linux
- darwin
goarch: goarch:
- 386 - 386
- amd64 - amd64
@@ -28,14 +27,26 @@ builds:
- 6 - 6
- 7 - 7
ignore: ignore:
- goos: darwin
goarch: 386
- goos: windows - goos: windows
goarch: arm goarch: arm
- goos: windows - goos: windows
goarch: arm64 goarch: arm64
hooks: hooks:
post: upx -9 "{{ .Path }}" post: upx -9 "{{ .Path }}"
- main: ./main.go
id: speedtest-backend-darwin
binary: speedtest-backend
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -w -s
goos:
- darwin
goarch:
- amd64
- arm64
- main: ./main.go - main: ./main.go
id: speedtest-backend-freebsd id: speedtest-backend-freebsd
binary: speedtest-backend binary: speedtest-backend