Skip to content
box

GitHub Action

Setup gRPC

v5 Latest version

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@v5

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@v3
- uses: eWaterCycle/setup-grpc@v5
  with:
    grpc-version: 1.51.1

Contributing

If you want to contribute to the development of apptainer-setup action, have a look at the contribution guidelines.