Skip to content

Commit

Permalink
fix taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
firefart committed Feb 23, 2024
1 parent 0ab194b commit 038d45b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,23 @@ tasks:
- 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 038d45b

Please sign in to comment.