node binding generation follow up #2
Workflow file for this run
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: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - livekit-ffi/** | |
| - livekit-ffi-node-bindings/** | |
| 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 }} | |
| - name: Install prost generators | |
| run: cargo install protoc-gen-prost@0.3.1 protoc-gen-prost-serde@0.3.1 | |
| - 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 |