Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
box

GitHub Action

Setup gRPC

v2

Setup gRPC

box

Setup gRPC

Setup gRPC C++ environment

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup gRPC

uses: eWaterCycle/setup-grpc@v2

Learn more about this action in eWaterCycle/setup-grpc

Choose a version

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@v2
  with:
    grpc-version: 1.30.2

Build

For developers of setup-grpc action.

Install deps with

npm install

Build dist with

npm run build