From f382b32bb4b481bdbee69a52d63e7f318f8c1a59 Mon Sep 17 00:00:00 2001 From: Ross Light Date: Mon, 7 Sep 2020 08:11:30 -0700 Subject: [PATCH] .github/workflows: build Windows binary Updates #47 --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 154450e..1515aef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -128,4 +128,14 @@ jobs: run: go test -mod=readonly -v ./... env: GO111MODULE: on + - name: Build binary + run: |- + go build -o gg.exe -ldflags="-X main.buildCommit=$Env:GITHUB_SHA -X main.buildTime=$((Get-Date).ToUniversalTime() | Get-Date -UFormat '%Y-%m-%dT%TZ')" gg-scm.io/tool/cmd/gg + env: + GO111MODULE: on + - name: Upload binary + uses: actions/upload-artifact@v2 + with: + name: Windows binary + path: gg.exe