-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for building release binaries
- Loading branch information
Daniel S. Reichenbach
committed
Dec 26, 2017
1 parent
0e76731
commit eb8a8bb
Showing
3 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,7 @@ _testmain.go | |
*.test | ||
*.prof | ||
|
||
# release | ||
dist | ||
# bin | ||
vultr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# See https://goreleaser.com/ for details | ||
# Build customization | ||
build: | ||
main: vultr.go | ||
binary: vultr | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
- freebsd | ||
- netbsd | ||
- openbsd | ||
- dragonfly | ||
goarch: | ||
- amd64 | ||
- 386 | ||
- arm | ||
- arm64 | ||
ignore: | ||
- goos: openbsd | ||
goarch: arm | ||
goarm: 6 | ||
|
||
archive: | ||
format: tar.gz | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
name_template: "{{.Binary}}_{{.Version}}_{{.Os}}-{{.Arch}}" | ||
replacements: | ||
amd64: 64bit | ||
386: 32bit | ||
arm: ARM | ||
arm64: ARM64 | ||
darwin: macOS | ||
linux: Linux | ||
windows: Windows | ||
openbsd: OpenBSD | ||
netbsd: NetBSD | ||
freebsd: FreeBSD | ||
dragonfly: DragonFlyBSD | ||
files: | ||
- README.md | ||
- LICENSE | ||
release: | ||
draft: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters