From ef1796aa1c1a4d1bf8e6cfa329994516c1c2cbd8 Mon Sep 17 00:00:00 2001 From: scawful Date: Thu, 23 Oct 2025 11:57:29 -0400 Subject: [PATCH] chore: update CI workflow and gRPC CMake configuration - Modified the CI workflow to remove the `build/_deps` directory during the clean-up process, ensuring a more thorough cache reset. - Updated gRPC CMake configuration to disable reflection support, further optimizing the build process by preventing unnecessary proto generation. Benefits: - Enhances the CI workflow by ensuring a clean build environment. - Improves build efficiency by reducing unnecessary steps in gRPC integration. --- .github/workflows/ci.yml | 2 +- cmake/grpc.cmake | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae645ec3..a1c20921 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -378,7 +378,7 @@ jobs: - name: Clean CMake cache shell: bash run: | - rm -rf build build_ai cmake_config.log + rm -rf build build_ai build/_deps cmake_config.log - name: Configure (Unix) if: runner.os != 'Windows' diff --git a/cmake/grpc.cmake b/cmake/grpc.cmake index d7d5ba95..68cfa16d 100644 --- a/cmake/grpc.cmake +++ b/cmake/grpc.cmake @@ -37,6 +37,8 @@ set(gRPC_BUILD_GRPC_PHP_PLUGIN OFF CACHE BOOL "" FORCE) set(gRPC_BUILD_GRPC_PYTHON_PLUGIN OFF CACHE BOOL "" FORCE) set(gRPC_BUILD_GRPC_RUBY_PLUGIN OFF CACHE BOOL "" FORCE) # Disable C++ reflection support (avoids extra proto generation) +set(gRPC_BUILD_REFLECTION OFF CACHE BOOL "" FORCE) +set(gRPC_BUILD_GRPC_REFLECTION OFF CACHE BOOL "" FORCE) set(gRPC_BUILD_GRPC_CPP_REFLECTION OFF CACHE BOOL "" FORCE) set(gRPC_BUILD_GRPCPP_REFLECTION OFF CACHE BOOL "" FORCE)