diff --git a/Taskfile.yaml b/Taskfile.yaml index 18c4805..d809231 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -9,6 +9,7 @@ vars: WINDOWS: '{{.BIN_DIR}}/{{.PROGRAM}}_windows_amd64.exe' LINUX: '{{.BIN_DIR}}/{{.PROGRAM}}_linux_amd64' + MACOS: '{{.BIN_DIR}}/{{.PROGRAM}}_darwin_amd64' tasks: default: @@ -22,6 +23,7 @@ tasks: cmds: - task: build-windows - task: build-linux + - task: build-macos vet: desc: Vet the code @@ -46,6 +48,12 @@ tasks: - GOOS=linux GOARCH=amd64 go build -o {{.LINUX}} -ldflags="-X main.version={{.VERSION}}" internal: true + build-macos: + desc: Build the ignr project for macOS + cmds: + - GOOS=darwin GOARCH=amd64 go build -o {{.MACOS}} -ldflags="-X main.version={{.VERSION}}" + internal: true + test: desc: Run tests cmds: