-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add async extension in Python binding in order to use asyncio m…
…ore conveniently docs: fix local registry and names (#89) feat: enhance default_extension_go for template mode (#88) Co-authored-by: Hu Yueh-Wei <[email protected]> docs: add a tutorial for running model locally in a Python extension (#90) Co-authored-by: Hu Yueh-Wei <[email protected]> fix: rename test cases feat: upload runtime only, ignore others (#93) fix: no need to package src (#92) feat: add a python script for auto update package versions according … (#85) Co-authored-by: Hu Yueh-Wei <[email protected]> docs: updating ten_agent_server from astra_agents_dev (#95) * docs: updating ten_agent_server from astra_agents_dev Updating ten_agent_server from astra_agents_dev * docs: fixing typo Fixing typo fix: fix some integration test cases (#94) feat: add cargo config auto-gen (#51) Co-authored-by: Hu Yueh-Wei <[email protected]> chore: update version and publish to cloud store automatically (#97) Co-authored-by: Hu Yueh-Wei <[email protected]> fix: refine codes fix: update versions of dependencies fix: refine codes fix: add TenEnvAsync class for AsyncExtension fix: add more comments chore: improve and supplement Python test cases fix: refine naming fix: refine naming fix: refine codes fix: join thread in destructor of AsyncExtension fix: forked repo can not get version since tag is not synced (#99) doc: update summary part feat: add linux/arm64 (#98) Co-authored-by: Hu Yueh-Wei <[email protected]> chore: update to latest ten_gn chore: add more CI test cases (#136) fix: join thread before on_deinit_done to prevent from memory leak in Python binding fix: create a new Python thread to avoid blocking extension thread
- Loading branch information
Showing
211 changed files
with
4,464 additions
and
852 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
name: Build - linux arm64 | ||
|
||
on: | ||
release: | ||
types: [created] | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths-ignore: | ||
- "tools/**" | ||
- "docs/**" | ||
- ".vscode/**" | ||
- ".devcontainer/**" | ||
- ".github/**" | ||
- "!.github/workflows/build_linux_arm64.yml" | ||
- "**.md" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: build-linux-arm64-${{ github.head_ref }}-${{ matrix.compiler }}-${{ matrix.build_type }} | ||
cancel-in-progress: true | ||
strategy: | ||
matrix: | ||
compiler: [gcc] | ||
build_type: [release] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: "0" | ||
submodules: "true" | ||
|
||
- name: Update version | ||
run: | | ||
git config --global --add safe.directory $(pwd) | ||
python3 tools/version/update_version_in_ten_framework.py | ||
python3 tools/version/check_version_in_ten_framework.py | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: arm64 | ||
|
||
- name: Build | ||
run: | | ||
docker run --rm --platform linux/arm64 \ | ||
-v $(pwd):/${{ github.workspace }} -w ${{ github.workspace }} \ | ||
ghcr.io/ten-framework/ten_building_ubuntu2204 \ | ||
bash -c "\ | ||
export PATH=$(pwd)/core/ten_gn:/usr/local/go/bin:/root/go/bin:/root/.cargo/bin:$PATH && \ | ||
echo $PATH && \ | ||
go env -w GOFLAGS="-buildvcs=false" && \ | ||
go1.20.12 download && \ | ||
rustup default nightly && \ | ||
tgn gen linux arm64 ${{ matrix.build_type }} -- is_clang=${{ matrix.compiler == 'gcc' && 'false' || 'true' }} log_level=1 enable_serialized_actions=true ten_enable_tests=false ten_enable_libwebsockets=false && \ | ||
tgn build linux arm64 ${{ matrix.build_type }} && \ | ||
tree -I 'gen|obj' out \ | ||
" | ||
- name: Upload tman | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: tman-linux-arm64-${{ matrix.compiler }}-${{ matrix.build_type }} | ||
path: out/linux/arm64/ten_manager/bin/tman | ||
|
||
- name: Upload ten_packages | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ten_packages-linux-arm64-${{ matrix.compiler }}-${{ matrix.build_type }} | ||
path: | | ||
out/linux/x64/ten_packages/system/ten_runtime | ||
out/linux/x64/ten_packages/system/ten_runtime_go | ||
out/linux/x64/ten_packages/system/ten_runtime_python | ||
out/linux/arm64/ten_packages/extension/default_extension_cpp | ||
out/linux/arm64/ten_packages/extension/default_extension_go | ||
out/linux/arm64/ten_packages/extension/default_extension_python | ||
out/linux/arm64/ten_packages/extension/py_init_extension_cpp | ||
- name: Package assets | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: | | ||
cd out/linux/arm64 | ||
zip -vr tman-linux-arm64-${{ matrix.compiler }}-${{ matrix.build_type }}.zip ten_manager/bin/tman | ||
zip -vr ten_packages-linux-arm64-${{ matrix.compiler }}-${{ matrix.build_type }}.zip \ | ||
ten_packages/system/ten_runtime \ | ||
ten_packages/system/ten_runtime_go \ | ||
ten_packages/system/ten_runtime_python \ | ||
ten_packages/extension/default_extension_cpp \ | ||
ten_packages/extension/default_extension_go \ | ||
ten_packages/extension/default_extension_python \ | ||
ten_packages/extension/py_init_extension_cpp | ||
- name: Publish to release assets | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
out/linux/arm64/tman-linux-arm64-${{ matrix.compiler }}-${{ matrix.build_type }}.zip | ||
out/linux/arm64/ten_packages-linux-arm64-${{ matrix.compiler }}-${{ matrix.build_type }}.zip |
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
Oops, something went wrong.