Files
protocol/.github/workflows/generate.yaml
David Zhao 2d0d2484b0 bump generator versions (#182)
* bump generator versions

* generated protobuf

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-08-06 12:17:49 -07:00

51 lines
1.1 KiB
YAML

name: Generate
on:
workflow_dispatch:
push:
branches-ignore: [ main ]
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '>=1.17'
- name: Go mod tidy
run: go mod tidy
- name: Install generators
run: |
go install github.com/twitchtv/twirp/protoc-gen-twirp@v8.1.0
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0
- name: Mage Test
uses: magefile/mage-action@v2
with:
version: latest
args: test
- name: Generate Protobuf
uses: magefile/mage-action@v2
with:
version: latest
args: proto
- name: Add changes
uses: EndBug/add-and-commit@v9
with:
add: livekit
default_author: github_actions
message: generated protobuf