Skip to content

eWaterCycle/setup-grpc

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

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