-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial monorepo & server sdk (#61)
Co-authored-by: David Zhao <[email protected]>
- Loading branch information
1 parent
15934c5
commit 907be69
Showing
70 changed files
with
4,510 additions
and
162 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
**/*.dll filter=lfs diff=lfs merge=lfs -text | ||
**/*.so filter=lfs diff=lfs merge=lfs -text | ||
**/*.dylib filter=lfs diff=lfs merge=lfs -text | ||
**/*.dylib filter=lfs diff=lfs merge=lfs -text | ||
livekit-api/livekit/api/_proto/** linguist-generated=true | ||
livekit-rtc/livekit/rtc/_proto/** linguist-generated=true |
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,63 @@ | ||
name: Build API | ||
|
||
on: | ||
push: | ||
paths: | ||
- livekit-api/** | ||
pull_request: | ||
paths: | ||
- livekit-api/** | ||
workflow_dispatch: | ||
|
||
env: | ||
PACKAGE_DIR: ./livekit-api | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build API wheel/sdist | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ${{ env.PACKAGE_DIR }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- uses: actions/setup-python@v4 | ||
|
||
- name: Build wheel | ||
run: | | ||
pip3 install build wheel | ||
python3 -m build --wheel | ||
env: | ||
CIBW_ARCHS: ${{ matrix.archs }} | ||
CIBW_SKIP: "*-musllinux_*" | ||
|
||
- name: Build SDist | ||
run: pipx run build --sdist | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: api-release | ||
path: | | ||
livekit-api/dist/*.whl | ||
livekit-api/dist/*.tar.gz | ||
publish: | ||
name: Publish API release | ||
needs: build_wheels | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
if: startsWith(github.ref, 'refs/tags/api-v') | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: api-release | ||
path: dist | ||
|
||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
|
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "client-sdk-rust"] | ||
path = rust-sdks | ||
path = livekit-rtc/rust-sdks | ||
url = https://github.com/livekit/rust-sdks | ||
[submodule "livekit-api/protocol"] | ||
path = livekit-api/protocol | ||
url = https://github.com/livekit/protocol |
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.