added Single Peer Connection support to Rust #81
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: Generate FFI Proto (Node) | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - livekit-ffi/** | |
| - livekit-ffi-node-bindings/** | |
| workflow_dispatch: | |
| workflow_call: | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.sha }} | |
| cancel-in-progress: false | |
| env: | |
| PACKAGE_DIR: ./livekit-ffi-node-bindings | |
| 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@v4 | |
| with: | |
| submodules: true | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - name: Install Protoc | |
| uses: arduino/setup-protoc@v3 | |
| with: | |
| version: "25.1" | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| package_json_file: livekit-ffi-node-bindings/package.json | |
| - name: Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| cache-dependency-path: livekit-ffi-node-bindings/pnpm-lock.yaml | |
| - run: pnpm install | |
| - name: generate JS stubs | |
| run: ./generate_proto.sh | |
| - name: Add changes | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| add: '["livekit-ffi-node-bindings/src/proto"]' | |
| default_author: github_actions | |
| message: generated protobuf |