refactor(ci): enhance caching and dependency management in workflows
- Added caching for ccache and CMake dependencies in CI and release workflows to improve build performance. - Updated installation commands to include ccache across Linux, macOS, and Windows environments. - Enhanced CMake configuration steps to utilize ccache for faster builds and added statistics reporting. Benefits: - Reduces build times and improves efficiency in CI processes, facilitating quicker feedback and integration.
This commit is contained in:
@@ -147,7 +147,7 @@ if(YAZE_WITH_GRPC)
|
||||
)
|
||||
if(YAZE_PROTOBUF_TARGET)
|
||||
target_link_libraries(yaze_core_lib PUBLIC ${YAZE_PROTOBUF_TARGET})
|
||||
if(MSVC)
|
||||
if(MSVC AND CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
target_link_options(yaze_core_lib PUBLIC /WHOLEARCHIVE:$<TARGET_FILE:${YAZE_PROTOBUF_TARGET}>)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -86,7 +86,7 @@ if(YAZE_WITH_GRPC)
|
||||
)
|
||||
if(YAZE_PROTOBUF_TARGET)
|
||||
target_link_libraries(yaze_net PUBLIC ${YAZE_PROTOBUF_TARGET})
|
||||
if(MSVC)
|
||||
if(MSVC AND CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
target_link_options(yaze_net PUBLIC /WHOLEARCHIVE:$<TARGET_FILE:${YAZE_PROTOBUF_TARGET}>)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user