Skip to content

provides a protoc installation with the go gen plugin.

License

Notifications You must be signed in to change notification settings

OA/protoc-go-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protoc go action

this action runs the protoc compiler with the go plugin.

example usage

github action

name: build

on:
  release:
    types: [ published ]

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - name: checkout repository
        uses: actions/checkout@v4

      - name: compile proto files
        uses: oa/protoc-go-action@0.1.1
        with:
          go-out: service/pb
          grpc-out: service/pb
          proto-file-directory: proto

docker run

docker run --rm -v $(pwd):/project ghcr.io/oa/protoc-go-action:0.1.1 service/pb service/pb proto