You've already forked speedtest-go
fix: skip upx for darwin/arm64 target
This commit is contained in:
+14
-3
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user