Skip to content

brian-keebo/setup-grpc

 
 

Repository files navigation

GitHub Action to setup gRPC C++ environment

CI Validate versions DOI

To compile C++ code against gRPC in a GitHub action workflow you need to install it first. This GitHub action compiles or downloads it for you.

Installation follows gRPC build instructions.

  • The bin directory is added to the PATH env var
  • The lib directory is added to LD_LIBRARY_PATH env
  • GRPC_ROOT env var is set to install directory.
  • The install directory is added to the CMAKE_PREFIX_PATH env var
  • Installation includes protobuf installation
  • Besides C++ gRPC plugin, plugins for Node, PHP, Python, Ruby are also made

Inputs

grpc-version

Version of gRPC. See releases page for available versions. If a binary build of a version is available on https://github.com/eWaterCycle/grpc-versions/releases it is used otherwise the version is build during the action, which takes significantly longer. Versions lower then 3.6 need additional OS packages installed like uuid-dev.

Example usage

steps:
- uses: actions/checkout@v2
- uses: eWaterCycle/setup-grpc@v4
  with:
    grpc-version: 1.30.2

Build

For developers of setup-grpc action.

Install deps with

npm install

Build dist with

npm run build

About

GitHub Action to setup gRPC C++ environment

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%