mirror of
https://github.com/onyx-and-iris/exclude.git
synced 2026-03-30 23:19:09 +00:00
add macos build target to Taskfile
This commit is contained in:
parent
8059255d52
commit
196a7dac01
@ -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}}'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user