From 895486dae3a7a077f0254d3b13a7bac3e3358f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabr=C3=ADzio=20de=20Royes=20Mello?= Date: Tue, 17 Sep 2024 14:30:23 -0300 Subject: [PATCH] Added github action for regression tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabrízio de Royes Mello --- .github/workflows/ci.yaml | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..7d8b9c2 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,43 @@ +--- +name: Run extension Regression Tests + +on: [push, pull_request, workflow_dispatch] + +jobs: + + opentelemetry-cpp: + name: OpenTelemetry C++ SDK + runs-on: ubuntu-latest + + steps: + - name: Checkout gRPC C++ SDK + uses: actions/checkout@v4 + with: + repository: grpc/grpc + ref: v1.62.0 + path: grpc + fetch-depth: 2 + submodules: 'recursive' + + - name: Install build dependencies + run: | + sudo apt-get update -y + sudo apt-get install --no-install-recommends --no-install-suggests -y \ + build-essential bison flex zlib1g-dev libreadline-dev + + - name: Build gRPC C++ SDK + run: | + cd grpc + mkdir -p cmake/build + pushd cmake/build + cmake -DgRPC_INSTALL=ON \ + -DgRPC_BUILD_TESTS=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr/local \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_CXX_STANDARD=17 \ + -DABSL_PROPAGATE_CXX_STD=ON \ + ../.. + make -j + sudo make -j install + popd + sudo ldconfig