Skip to content

Commit

Permalink
Fix windows/arm64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie committed Sep 18, 2021
1 parent bee29e8 commit 42cc774
Showing 1 changed file with 96 additions and 74 deletions.
170 changes: 96 additions & 74 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,80 +4,102 @@ before:
hooks:
- go mod download
builds:
- main: ./main.go
id: speedtest-backend
binary: speedtest-backend
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -w -s
goos:
- windows
- linux
- darwin
goarch:
- 386
- amd64
- arm
- arm64
- mips
- mipsle
goarm:
- 5
- 6
- 7
gomips:
- hardfloat
- softfloat
ignore:
- goos: darwin
goarch: 386
hooks:
post: upx -9 "{{ .Path }}"
- main: ./main.go
id: speedtest-backend-freebsd
binary: speedtest-backend
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -w -s
goos:
- freebsd
goarch:
- 386
- amd64
- arm
- arm64
- mips
- mipsle
goarm:
- 5
- 6
- 7
gomips:
- hardfloat
- softfloat
- main: ./main.go
id: speedtest-backend-noupx
binary: speedtest-backend
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -w -s
goos:
- linux
goarch:
- mips64
- mips64le
gomips:
- hardfloat
- softfloat
- main: ./main.go
id: speedtest-backend
binary: speedtest-backend
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -w -s
goos:
- windows
- linux
- darwin
goarch:
- 386
- amd64
- arm
- arm64
- mips
- mipsle
goarm:
- 5
- 6
- 7
gomips:
- hardfloat
- softfloat
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
hooks:
post: upx -9 "{{ .Path }}"
- main: ./main.go
id: speedtest-backend-freebsd
binary: speedtest-backend
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -w -s
goos:
- freebsd
goarch:
- 386
- amd64
- arm
- arm64
- mips
- mipsle
goarm:
- 5
- 6
- 7
gomips:
- hardfloat
- softfloat
- main: ./main.go
id: speedtest-backend-noupx-linux
binary: speedtest-backend
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -w -s
goos:
- linux
goarch:
- mips64
- mips64le
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
Expand Down

0 comments on commit 42cc774

Please sign in to comment.