Skip to content

Commit

Permalink
TeamCity: move riscv64 backend testing to tip
Browse files Browse the repository at this point in the history
  • Loading branch information
aarzilli committed Oct 28, 2024
1 parent 2a9af73 commit 2f4cac4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .teamcity/settings.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ val targets = arrayOf(

"linux/ppc64le/1.23",

"linux/riscv64/1.23",
"linux/riscv64/tip",

"windows/amd64/1.23",
"windows/amd64/tip",
Expand Down
8 changes: 8 additions & 0 deletions pkg/goversion/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package goversion

import (
"fmt"
"runtime"

"github.com/go-delve/delve/pkg/logflags"
)
Expand All @@ -24,6 +25,13 @@ func Compatible(producer string, warnonly bool) error {
if ver.IsOldDevel() {
return nil
}
if runtime.GOARCH == "riscv64" && !ver.AfterOrEqual(GoVersion{1, 24, versionedDevel, "", ""}) {
if warnonly {
logflags.WriteError(fmt.Sprintf(goTooOldWarn, ver.String()))
return nil
}
return fmt.Errorf(goTooOldErr, ver.String())
}
if !ver.AfterOrEqual(GoVersion{MinSupportedVersionOfGoMajor, MinSupportedVersionOfGoMinor, betaRev(0), "", ""}) {
if warnonly {
logflags.WriteError(fmt.Sprintf(goTooOldWarn, ver.String()))
Expand Down

0 comments on commit 2f4cac4

Please sign in to comment.