Skip to content

Commit

Permalink
feat: support additional GOOS/GOARCH targets (#1162)
Browse files Browse the repository at this point in the history
* feat: support illumos amd64 target

* feat: support other missing targets
  • Loading branch information
maier authored and caarlos0 committed Oct 1, 2019
1 parent 9d5f36f commit 9b5df03
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/builders/golang/targets.go
Expand Up @@ -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
Expand All @@ -102,6 +106,7 @@ var validTargets = []string{
"freebsd386",
"freebsdamd64",
"freebsdarm",
"illumosamd64",
"jswasm",
"linux386",
"linuxamd64",
Expand All @@ -122,6 +127,7 @@ var validTargets = []string{
"openbsdarm",
"plan9386",
"plan9amd64",
"plan9arm",
"solarisamd64",
"windows386",
"windowsamd64",
Expand Down
6 changes: 6 additions & 0 deletions internal/builders/golang/targets_test.go
Expand Up @@ -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},
Expand All @@ -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},
Expand Down

0 comments on commit 9b5df03

Please sign in to comment.