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
PATHenv var - The lib directory is added to
LD_LIBRARY_PATHenv GRPC_ROOTenv var is set to install directory.- The install directory is added to the
CMAKE_PREFIX_PATHenv var - Installation includes protobuf installation
- Besides C++ gRPC plugin, plugins for Node, PHP, Python, Ruby are also made
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.
steps:
- uses: actions/checkout@v3
- uses: eWaterCycle/setup-grpc@v5
with:
grpc-version: 1.51.1If you want to contribute to the development of apptainer-setup action, have a look at the contribution guidelines.