build(release): Ignore unsupported platform architecture combinations

fix(tuning): Fix type conversion issue in memory calculation
This commit is contained in:
Gouryella
2026-01-14 15:41:54 +08:00
parent a3cad40196
commit eb2f168226
2 changed files with 10 additions and 1 deletions

View File

@@ -24,6 +24,15 @@ builds:
gomips:
- hardfloat
- softfloat
ignore:
- goos: windows
goarch: arm
- goos: darwin
goarch: "386"
- goos: darwin
goarch: arm
- goos: freebsd
goarch: arm64
flags:
- -trimpath
ldflags:

View File

@@ -7,7 +7,7 @@ import "syscall"
func getSystemTotalMemory() uint64 {
var info syscall.Sysinfo_t
if err := syscall.Sysinfo(&info); err == nil {
return info.Totalram * uint64(info.Unit)
return uint64(info.Totalram) * uint64(info.Unit)
}
return 1024 * 1024 * 1024
}