chore(CI): add goreleaser config

This commit is contained in:
Bo-Yi Wu
2023-02-27 16:27:56 +08:00
parent 5af237945e
commit 5a8b7afa28
4 changed files with 46 additions and 1 deletions

View File

@@ -98,6 +98,7 @@ func testRequest(t *testing.T, url string) {
func TestPrintGoRushVersion(t *testing.T) {
SetVersion("3.0.0")
SetCommit("abcdefg")
ver := GetVersion()
PrintGoRushVersion()

View File

@@ -31,7 +31,7 @@ func GetVersion() string {
func PrintGoRushVersion() {
fmt.Printf(`GoRush %s, Commit: %s, Compiler: %s %s, Copyright (C) 2023 Bo-Yi Wu, Inc.`,
version,
commit,
commit[:7],
runtime.Compiler,
runtime.Version())
fmt.Println()