build actions.exe for Windows (#22)

This commit is contained in:
Yaron Schneider 2019-07-25 17:18:13 -07:00 committed by GitHub
parent d977e676d5
commit 4e3dd8ddac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -40,9 +40,10 @@ deps: dep
.PHONY: build
build:
for t in $(TARGETS); do \
if test "windows" = $$t; then EXT=".exe"; else EXT=""; fi; \
CGO_ENABLED=$(CGO) GOOS=$$t GOARCH=$(ARCH) go build \
-ldflags "-X main.version=$(CLI_VERSION) -X main.apiVersion=$(RUNTIME_API_VERSION)" \
-o dist/"$$t"_$(ARCH)/actions; \
-o dist/"$$t"_$(ARCH)/actions$$EXT; \
done;