watchdog-go: タスクランナーを追加

This commit is contained in:
usbharu 2024-03-11 16:35:39 +09:00
parent d97885215e
commit 5eacd02502
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 18 additions and 0 deletions

18
watchdog-go/Taskfile.yml Normal file
View File

@ -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=.