unos/watchdog-go/Taskfile.yml

19 lines
530 B
YAML
Raw Permalink Normal View History

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:
2024-03-11 12:39:36 +00:00
- protoc -I ../unos-proto/src/main/proto --go_out=. ../unos-proto/src/main/proto/watchdog/push_metrics.proto --go_opt=module=git.usbharu.dev/usbharu/unos --go-grpc_opt=module=git.usbharu.dev/usbharu/unos --go-grpc_out=.