Skip to content

Commit

Permalink
feat: support goarch=loong64 (#3277)
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Aug 3, 2022
1 parent 631003e commit 06d0ce0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/builders/buildtarget/targets.go
Expand Up @@ -169,6 +169,7 @@ var (
"linuxmips64le",
"linuxs390x",
"linuxriscv64",
"linuxloong64",
"netbsd386",
"netbsdamd64",
"netbsdarm",
Expand Down Expand Up @@ -217,6 +218,7 @@ var (
"s390x",
"wasm",
"riscv64",
"loong64",
}

validGoarm = []string{"5", "6", "7"}
Expand Down
3 changes: 3 additions & 0 deletions internal/builders/buildtarget/targets_test.go
Expand Up @@ -31,6 +31,7 @@ func TestAllBuildTargets(t *testing.T) {
"mipsle",
"mips64le",
"riscv64",
"loong64",
},
Goarm: []string{
"6",
Expand Down Expand Up @@ -84,6 +85,7 @@ func TestAllBuildTargets(t *testing.T) {
"linux_mipsle_softfloat",
"linux_mips64le_hardfloat",
"linux_riscv64",
"linux_loong64",
"darwin_amd64_v1",
"darwin_amd64_v2",
"darwin_amd64_v4",
Expand Down Expand Up @@ -189,6 +191,7 @@ func TestGoosGoarchCombos(t *testing.T) {
{"linux", "ppc64le", true},
{"linux", "s390x", true},
{"linux", "riscv64", true},
{"linux", "loong64", true},
{"netbsd", "386", true},
{"netbsd", "amd64", true},
{"netbsd", "arm", true},
Expand Down

0 comments on commit 06d0ce0

Please sign in to comment.