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:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -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'
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user