fork/rust-sdks
git clone https://git.julia.blue/fork/rust-sdks
f675ef8
livekit/livekit-ffi@0.13.0
1# Copyright 2023 LiveKit, Inc. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15name : Generate protocol 16 17on : 18pull_request : 19branches : [ "main" ] 20paths : 21- livekit-protocol/** 22 23env : 24CARGO_TERM_COLOR : always 25PACKAGE_DIR : ./livekit-protocol 26 27jobs : 28generate_protobuf : 29runs-on : ubuntu-latest 30name : Generating protobuf 31 32defaults : 33run : 34working-directory : ${{ env.PACKAGE_DIR }} 35 36steps : 37- uses : actions/checkout@v4 38with : 39submodules : true 40ref : ${{ github.event.pull_request.head.ref }} 41 42- uses : actions-rs/toolchain@v1 43with : 44toolchain : stable 45 46- name : Install Protoc 47uses : arduino/setup-protoc@v2 48with : 49version : "25.2" 50repo-token : ${{ secrets.GITHUB_TOKEN }} 51 52- name : Install prost generators 53run : cargo install protoc-gen-prost@0.3.1 protoc-gen-prost-serde@0.3.1 54 55- name : generate python stubs 56run : ./generate_proto.sh 57 58- name : Add changes 59uses : EndBug/add-and-commit@v9 60with : 61add : '["livekit-protocol/"]' 62default_author : github_actions 63message : generated protobuf