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

@ -4,7 +4,7 @@ before:
hooks: hooks:
- go mod download - go mod download
builds: builds:
- main: ./main.go - main: ./main.go
id: speedtest-backend id: speedtest-backend
binary: speedtest-backend binary: speedtest-backend
env: env:
@ -34,9 +34,13 @@ builds:
ignore: ignore:
- goos: darwin - goos: darwin
goarch: 386 goarch: 386
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
hooks: hooks:
post: upx -9 "{{ .Path }}" post: upx -9 "{{ .Path }}"
- main: ./main.go - main: ./main.go
id: speedtest-backend-freebsd id: speedtest-backend-freebsd
binary: speedtest-backend binary: speedtest-backend
env: env:
@ -61,8 +65,8 @@ builds:
gomips: gomips:
- hardfloat - hardfloat
- softfloat - softfloat
- main: ./main.go - main: ./main.go
id: speedtest-backend-noupx id: speedtest-backend-noupx-linux
binary: speedtest-backend binary: speedtest-backend
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
@ -78,6 +82,24 @@ builds:
gomips: gomips:
- hardfloat - hardfloat
- softfloat - 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: archives:
- format_overrides: - format_overrides:
- goos: windows - goos: windows