Skip to content

Commit

Permalink
fix taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
firefart committed Mar 10, 2024
1 parent d62ba01 commit 46aebca
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ version: "3"
vars:
PROGRAM: stunner

env:
CGO_ENABLED: 0

tasks:
update:
cmds:
Expand All @@ -16,25 +19,23 @@ tasks:
- go vet ./...
- go build -o {{.OUTPUT_FILE | default .PROGRAM}}
env:
CGO_ENABLED: 0
GOOS: '{{.GOOS | default "linux"}}'
GOARCH: '{{.GOARCH | default "amd64"}}'

linux:
cmds:
- task: build
env:
CGO_ENABLED: 0
GOOS: linux
GOARCH: amd64
vars:
GOOS: linux
GOARCH: amd64

windows:
cmds:
- task: build
vars:
OUTPUT_FILE: "{{.PROGRAM}}.exe"
env:
CGO_ENABLED: 0
GOOS: windows
GOARCH: amd64
GOOS: windows
GOARCH: amd64

test:
env:
Expand Down

0 comments on commit 46aebca

Please sign in to comment.