From eb7a8b8a642cdf6c145787bb83c5026e04ad1b0a Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Thu, 27 Oct 2022 00:32:30 +0500 Subject: [PATCH] fix(ci): pass GOOS/GOARCH args to task --- Taskfile.yml | 3 +++ Taskfile_windows.yml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index d3512d62..434e774b 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -19,6 +19,9 @@ tasks: - task: compile - task: test - task: build:local + vars: + GOOS: '' + GOARCH: '' deps: desc: Install all dependencies (except dredd requirements) diff --git a/Taskfile_windows.yml b/Taskfile_windows.yml index 01c97dc1..46e3690f 100644 --- a/Taskfile_windows.yml +++ b/Taskfile_windows.yml @@ -4,3 +4,7 @@ tasks: cmds: - packr - go run util/version_gen/generator.go 1 + build:local: + dir: cli + cmds: + - go build -o ../bin/semaphore{{ if eq OS "windows" }}.exe{{ end }}