-
Notifications
You must be signed in to change notification settings - Fork 360
/
Taskfile.yml
67 lines (57 loc) · 1.71 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3'
tasks:
clean:
desc: clean up
cmds:
- task: clean-agents
- task: clean-server
build:
desc: build
cmds:
- task: build-agent
- task: build-server
use:
desc: use agent, default 'agents/examples/default'
vars:
AGENT: '{{.AGENT| default "agents/examples/default"}}'
cmds:
- ln -sf {{.USER_WORKING_DIR}}/{{.AGENT}}/manifest.json ./agents/
- ln -sf {{.USER_WORKING_DIR}}/{{.AGENT}}/property.json ./agents/
- task: build
run-server:
desc: run backend http server
cmds:
- source .env && /app/server/bin/api
run-gd-server:
desc: run tman dev http server for graph designer
dir: ./agents
cmds:
- tman dev-server
run:
desc: run servers
deps:
- task: run-server
- task: run-gd-server
build-agent:
desc: build agent
dir: ./agents
internal: true
cmds:
- ./scripts/install_deps_and_build.sh linux x64 && mv bin/main bin/worker
build-server:
desc: build server
dir: ./server
cmds:
- go mod tidy && go mod download && go build -o bin/api main.go
clean-agents:
desc: clean up agents
dir: ./agents
internal: true
cmds:
- rm -rf manifest.json property.json manifest-lock.json bin/main bin/worker out .release ten_packages/system/ten_runtime* ten_packages/system/agora_rtc_sdk ten_packages/system/azure_speech_sdk ten_packages/system/nlohmann_json ten_packages/extension/agora_rtc ten_packages/extension/agora_rtm ten_packages/extension/agora_sess_ctrl ten_packages/extension/azure_tts ten_packages/extension/py_init_extension_cpp
clean-server:
desc: clean up server
dir: ./server
internal: true
cmds:
- rm -rf bin