-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: update build image * feat: seperate agents * feat: use task instead of make, keep minimum compatibility for a while * feat: allow 'task use' to switch agent directly * feat: remove makefile * fix: typo * fix: run server and gd-server in parallel * doc: use `task run` to run both server and gd-server
- Loading branch information
1 parent
a7987ff
commit 53a5fa5
Showing
18 changed files
with
1,565 additions
and
1,674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
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/demo' | ||
vars: | ||
AGENT: '{{.AGENT| default "agents/examples/demo"}}' | ||
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: | ||
- /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 | ||
internal: true | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,6 @@ xdump_config | |
.vscode | ||
*.pyc | ||
*.pyc.* | ||
/manifest.json | ||
/manifest-lock.json | ||
/property.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"type": "app", | ||
"name": "ten_agent", | ||
"name": "agent_demo", | ||
"version": "0.4.0", | ||
"dependencies": [ | ||
{ | ||
|
Oops, something went wrong.