1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-03 13:11:48 +02:00

feat: support additional GOOS/GOARCH targets (#1162)

* feat: support illumos amd64 target

* feat: support other missing targets
This commit is contained in:
matt maier 2019-10-01 15:25:13 -04:00 committed by Carlos Alexandro Becker
parent 9d5f36f21b
commit 9b5df03c09
2 changed files with 12 additions and 0 deletions

View File

@ -93,7 +93,11 @@ func valid(target target) bool {
// list from https://golang.org/doc/install/source#environment
// nolint: gochecknoglobals
var validTargets = []string{
"aixppc64",
"android386",
"androidamd64",
"androidarm",
"androidarm64",
"darwin386",
"darwinamd64",
// "darwinarm", - requires admin rights and other ios stuff
@ -102,6 +106,7 @@ var validTargets = []string{
"freebsd386",
"freebsdamd64",
"freebsdarm",
"illumosamd64",
"jswasm",
"linux386",
"linuxamd64",
@ -122,6 +127,7 @@ var validTargets = []string{
"openbsdarm",
"plan9386",
"plan9amd64",
"plan9arm",
"solarisamd64",
"windows386",
"windowsamd64",

View File

@ -65,13 +65,18 @@ func TestGoosGoarchCombos(t *testing.T) {
valid bool
}{
// valid targets:
{"aix", "ppc64", true},
{"android", "386", true},
{"android", "amd64", true},
{"android", "arm", true},
{"android", "arm64", true},
{"darwin", "386", true},
{"darwin", "amd64", true},
{"dragonfly", "amd64", true},
{"freebsd", "386", true},
{"freebsd", "amd64", true},
{"freebsd", "arm", true},
{"illumos", "amd64", true},
{"linux", "386", true},
{"linux", "amd64", true},
{"linux", "arm", true},
@ -91,6 +96,7 @@ func TestGoosGoarchCombos(t *testing.T) {
{"openbsd", "arm", true},
{"plan9", "386", true},
{"plan9", "amd64", true},
{"plan9", "arm", true},
{"solaris", "amd64", true},
{"windows", "386", true},
{"windows", "amd64", true},