Add -v / --version command and appropriate build flags.

This commit is contained in:
2021-05-09 11:40:36 +01:00
parent 8bbde1f600
commit cbe73e16db
5 changed files with 22 additions and 4 deletions
+2
View File
@@ -162,6 +162,8 @@ jobs:
fetch-depth: 0
- name: Compile binary
uses: thatisuday/go-cross-build@v1
env:
INPUT_LDFLAGS: "-s -w -X main.PKG_VERSION=${{ needs.prepare.outputs.RELEASE_VERSION }}"
with:
platforms: linux/amd64,darwin/amd64,windows/amd64,linux/arm64,darwin/amd64
name: semver-gen