diff --git a/watchdog-go/Taskfile.yml b/watchdog-go/Taskfile.yml new file mode 100644 index 0000000..26f3188 --- /dev/null +++ b/watchdog-go/Taskfile.yml @@ -0,0 +1,18 @@ +version: '3' +includes: +tasks: + build: + deps: [generate] + cmds: + - cmd: go build -o watchdog-go.exe -ldflags="-s -w" -trimpath + platforms: + - windows + - cmd: go build -o watchdog-go -ldflags="-s -w" -trimpath + platforms: + - linux + + generate: + cmds: + - protoc -I ../unos-proto/src/main/proto --go_out=. ../unos-proto/src/main/proto/watchdog/push_metrics.proto --go_opt=module=$prefix --go-grpc_out=. + +