diff options
author | Valery Piashchynski <[email protected]> | 2020-12-26 00:58:43 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-26 00:58:43 +0300 |
commit | c275707eccf06786c1a092c486fecbe0519d67ac (patch) | |
tree | 19b89cefc80827aa80d341ef280396deb73eb2e6 | |
parent | 51b16baf673389e48cc0a747b7654a8ea0b031f5 (diff) |
Correct release.yml autobuildv2.0.0-beta2
-rw-r--r-- | .github/workflows/release.yml | 6 | ||||
-rw-r--r-- | cmd/main.go | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1cd83ae..97a412fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,10 +55,10 @@ jobs: CGO_ENABLED: 0 LDFLAGS: >- -s - -X github.com/spiral/roadrunner/cmd/rr/cmd.Version=${{ steps.values.outputs.version }} - -X github.com/spiral/roadrunner/cmd/rr/cmd.BuildTime=${{ steps.values.outputs.timestamp }} + -X github.com/spiral/roadrunner/cmd/main.Version=${{ steps.values.outputs.version }} + -X github.com/spiral/roadrunner/cmd/main.BuildTime=${{ steps.values.outputs.timestamp }} run: | - go build -trimpath -ldflags "$LDFLAGS" -o "./${{ steps.values.outputs.binary-name }}" ./cmd/rr/main.go + go build -trimpath -ldflags "$LDFLAGS" -o "./${{ steps.values.outputs.binary-name }}" ./cmd/main.go stat "./${{ steps.values.outputs.binary-name }}" - name: Generate distributive directory name diff --git a/cmd/main.go b/cmd/main.go index 4e7fc099..36638836 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -17,6 +17,14 @@ import ( "github.com/spiral/roadrunner/v2/plugins/rpc" ) +var ( + // Version - defines build version. + Version = "local" + + // BuildTime - defined build time. + BuildTime = "development" +) + func main() { var err error cli.Container, err = endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel), endure.RetryOnFail(false)) |