Skip to content

Commit

Permalink
taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
firefart committed Feb 2, 2024
1 parent b2d15b8 commit 591136d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ tasks:
- go mod tidy -v

build:
aliases: [default, linux]
aliases: [default]
cmds:
- go fmt ./...
- go vet ./...
- go build -o {{.PROGRAM}}
- go build -o {{.OUTPUT_FILE | default .PROGRAM}}
env:
CGO_ENABLED: 0

Expand All @@ -29,6 +29,8 @@ tasks:
windows:
cmds:
- task: build
vars:
OUTPUT_FILE: "{{.PROGRAM}}.exe"
env:
CGO_ENABLED: 0
GOOS: windows
Expand Down

0 comments on commit 591136d

Please sign in to comment.