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.
This commit is contained in:
scawful
2025-10-23 11:57:29 -04:00
parent 1668e8add7
commit ef1796aa1c
2 changed files with 3 additions and 1 deletions

View File

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

View File

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