Bump livekit ffi to 0.12.76 (#799) #1720
This file contains hidden or 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
| name: Build RTC | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - livekit-rtc/** | |
| tags: | |
| - "rtc-v*.*.*" | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - livekit-rtc/** | |
| workflow_dispatch: | |
| env: | |
| PACKAGE_DIR: ./livekit-rtc | |
| jobs: | |
| generate_protobuf: | |
| runs-on: ubuntu-latest | |
| name: Generating protobuf | |
| if: github.event_name == 'pull_request' | |
| defaults: | |
| run: | |
| working-directory: ${{ env.PACKAGE_DIR }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| with: | |
| submodules: true | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7 | |
| - name: Install Protoc | |
| uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3 | |
| with: | |
| version: "25.1" | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install deps | |
| run: | | |
| pip3 install mypy-protobuf==3.6.0 "protobuf>=4.25.0,<5.0.0" | |
| - name: generate python stubs | |
| run: ./generate_proto.sh | |
| - name: Add changes | |
| uses: EndBug/add-and-commit@290ea2c423ad77ca9c62ae0f5b224379612c0321 # v10 | |
| with: | |
| add: '["livekit-rtc/"]' | |
| default_author: github_actions | |
| message: generated protobuf | |
| # Skip the default `git fetch --tags --force`: on this repo it pulls | |
| # 100+ refs at once and the action aborts before committing. Committing | |
| # generated stubs onto the PR head branch doesn't need a full fetch. | |
| fetch: false | |
| build_wheels: | |
| name: Build RTC wheels (${{ matrix.archs }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # wheels to build: | |
| include: | |
| - os: ubuntu-latest | |
| archs: x86_64 | |
| - os: namespace-profile-default-arm64 | |
| archs: aarch64 | |
| - os: windows-latest | |
| archs: AMD64 | |
| - os: macos-latest | |
| archs: x86_64 arm64 | |
| defaults: | |
| run: | |
| working-directory: ${{ env.PACKAGE_DIR }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7 | |
| id: setup-python | |
| with: | |
| python-version: "3.11" | |
| - name: Build wheels | |
| run: pipx run --python '${{ steps.setup-python.outputs.python-path }}' cibuildwheel==3.3.1 --output-dir dist | |
| env: | |
| CIBW_ARCHS: ${{ matrix.archs }} | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: rtc-release-${{ matrix.os }} | |
| path: livekit-rtc/dist/*.whl | |
| make_sdist: | |
| name: Make RTC sdist | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ${{ env.PACKAGE_DIR }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| with: | |
| submodules: true | |
| - name: Build sdist | |
| run: | | |
| pip3 install build | |
| python3 -m build --sdist | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: rtc-release-sdist | |
| path: livekit-rtc/dist/*.tar.gz | |
| test: | |
| name: Test (${{ matrix.os }}, Python ${{ matrix.python-version }}) | |
| needs: [build_wheels] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # Linux x86_64 tests | |
| - os: ubuntu-latest | |
| python-version: "3.9" | |
| artifact: rtc-release-ubuntu-latest | |
| - os: ubuntu-latest | |
| python-version: "3.10" | |
| artifact: rtc-release-ubuntu-latest | |
| - os: ubuntu-latest | |
| python-version: "3.11" | |
| artifact: rtc-release-ubuntu-latest | |
| - os: ubuntu-latest | |
| python-version: "3.12" | |
| artifact: rtc-release-ubuntu-latest | |
| - os: ubuntu-latest | |
| python-version: "3.13" | |
| artifact: rtc-release-ubuntu-latest | |
| - os: ubuntu-latest | |
| python-version: "3.14" | |
| artifact: rtc-release-ubuntu-latest | |
| # macOS tests (arm64 runner) | |
| - os: macos-latest | |
| python-version: "3.9" | |
| artifact: rtc-release-macos-latest | |
| - os: macos-latest | |
| python-version: "3.12" | |
| artifact: rtc-release-macos-latest | |
| - os: macos-latest | |
| python-version: "3.14" | |
| artifact: rtc-release-macos-latest | |
| # Windows tests | |
| - os: windows-latest | |
| python-version: "3.9" | |
| artifact: rtc-release-windows-latest | |
| - os: windows-latest | |
| python-version: "3.12" | |
| artifact: rtc-release-windows-latest | |
| - os: windows-latest | |
| python-version: "3.14" | |
| artifact: rtc-release-windows-latest | |
| uses: ./.github/workflows/tests.yml | |
| with: | |
| os: ${{ matrix.os }} | |
| python-version: ${{ matrix.python-version }} | |
| artifact-name: ${{ matrix.artifact }} | |
| secrets: | |
| LIVEKIT_URL: ${{ secrets.LIVEKIT_URL }} | |
| LIVEKIT_API_KEY: ${{ secrets.LIVEKIT_API_KEY }} | |
| LIVEKIT_API_SECRET: ${{ secrets.LIVEKIT_API_SECRET }} | |
| publish: | |
| name: Publish RTC release | |
| needs: [build_wheels, make_sdist, test] | |
| runs-on: ubuntu-latest | |
| environment: pypi | |
| permissions: | |
| id-token: write | |
| if: startsWith(github.ref, 'refs/tags/rtc-v') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) | |
| steps: | |
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 | |
| with: | |
| pattern: rtc-release-* | |
| path: dist | |
| merge-multiple: true | |
| - uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2 | |
| docs: | |
| needs: [publish] | |
| uses: ./.github/workflows/build-docs.yml | |
| with: | |
| package_dir: "livekit-rtc" | |
| package_name: "livekit.rtc" | |
| secrets: inherit |