From 196a7dac0103a4f254ab33e998fe06bb26671835 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 29 Mar 2026 21:16:03 +0100 Subject: [PATCH] add macos build target to Taskfile --- Taskfile.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index 4252926..c6ac40b 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -19,6 +19,7 @@ tasks: cmds: - task: build-windows - task: build-linux + - task: build-macos vet: 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}}" 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: desc: Run tests cmds: @@ -51,4 +58,4 @@ tasks: clean: desc: Clean the build artifacts cmds: - - '{{.SHELL}} rm -r {{.BIN_DIR}}' \ No newline at end of file + - '{{.SHELL}} rm -r {{.BIN_DIR}}'