-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
39 lines (34 loc) · 919 Bytes
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: '3'
vars:
CLIENT_SOURCE: "cmd/client.go"
SERVER_SOURCE: "cmd/main.go"
BOOTSTRAPPER_SOURCE: "cmd/bootstrapper.go"
CLIENT_BINARY: "client"
CLIENT2_BINARY: "client2"
SERVER_BINARY: "server"
BOOTSTRAPPER_BINARY: "bootstrapper"
tasks:
client:
desc: "Compile the client program"
cmds:
- go build -o {{.CLIENT_BINARY}} {{.CLIENT_SOURCE}}
generates:
- "{{.CLIENT_BINARY}}"
server:
desc: "Compile the server program"
cmds:
- go build -o {{.SERVER_BINARY}} {{.SERVER_SOURCE}}
generates:
- "{{.SERVER_BINARY}}"
bootstrapper:
desc: "Compile the bootstrapper program"
cmds:
- go build -o {{.BOOTSTRAPPER_BINARY}} {{.BOOTSTRAPPER_SOURCE}}
generates:
- "{{.BOOTSTRAPPER_BINARY}}"
build:
desc: "Compile bootstrapper + client + server programs"
cmds:
- task: client
- task: server
- task: bootstrapper