Fix windows/arm64 build

This commit is contained in:
Maddie Zhan 2021-09-18 13:54:48 +08:00
parent bee29e8b7e
commit 42cc7740a5

View File

@ -34,6 +34,10 @@ builds:
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
hooks:
post: upx -9 "{{ .Path }}"
- main: ./main.go
@ -62,7 +66,7 @@ builds:
- hardfloat
- softfloat
- main: ./main.go
id: speedtest-backend-noupx
id: speedtest-backend-noupx-linux
binary: speedtest-backend
env:
- CGO_ENABLED=0
@ -78,6 +82,24 @@ builds:
gomips:
- hardfloat
- softfloat
- main: ./main.go
id: speedtest-backend-noupx-windows-arm64
binary: speedtest-backend
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -w -s
goos:
- windows
goarch:
- arm
- arm64
goarm:
- 5
- 6
- 7
archives:
- format_overrides:
- goos: windows