add macos build target to Taskfile

This commit is contained in:
onyx-and-iris 2026-03-29 21:16:03 +01:00
parent 8059255d52
commit 196a7dac01

View File

@ -19,6 +19,7 @@ tasks:
cmds: cmds:
- task: build-windows - task: build-windows
- task: build-linux - task: build-linux
- task: build-macos
vet: vet:
desc: Vet the code desc: Vet the code
@ -43,6 +44,12 @@ tasks:
- GOOS=linux GOARCH=amd64 go build -o {{.BIN_DIR}}/{{.PROGRAM}}_linux_amd64 -ldflags="-X main.version={{.VERSION}}" - GOOS=linux GOARCH=amd64 go build -o {{.BIN_DIR}}/{{.PROGRAM}}_linux_amd64 -ldflags="-X main.version={{.VERSION}}"
internal: true internal: true
build-macos:
desc: Build the exclude project for macOS
cmds:
- GOOS=darwin GOARCH=amd64 go build -o {{.BIN_DIR}}/{{.PROGRAM}}_darwin_amd64 -ldflags="-X main.version={{.VERSION}}"
internal: true
test: test:
desc: Run tests desc: Run tests
cmds: cmds:
@ -51,4 +58,4 @@ tasks:
clean: clean:
desc: Clean the build artifacts desc: Clean the build artifacts
cmds: cmds:
- '{{.SHELL}} rm -r {{.BIN_DIR}}' - '{{.SHELL}} rm -r {{.BIN_DIR}}'