chore: update CI and release workflows for gRPC versioning
- Updated caching keys in CI and release workflows from v2 to v3 for gRPC dependencies to improve cache management. - Enhanced linking options for `yaze_editor` and `yaze_agent` to ensure test symbols are included correctly across different platforms. Benefits: - Streamlines the build process by ensuring proper versioning and linking of test support libraries. - Improves cache efficiency in CI workflows, reducing build times.
This commit is contained in:
@@ -171,4 +171,20 @@ if(YAZE_WITH_GRPC)
|
||||
message(STATUS "✓ gRPC GUI automation enabled for yaze_agent")
|
||||
endif()
|
||||
|
||||
# Link test support when tests are enabled (agent uses test harness functions)
|
||||
if(YAZE_BUILD_TESTS AND TARGET yaze_test_support)
|
||||
if(APPLE)
|
||||
target_link_options(yaze_agent PUBLIC
|
||||
"LINKER:-force_load,$<TARGET_FILE:yaze_test_support>")
|
||||
target_link_libraries(yaze_agent PUBLIC yaze_test_support)
|
||||
elseif(UNIX)
|
||||
target_link_libraries(yaze_agent PUBLIC
|
||||
-Wl,--whole-archive yaze_test_support -Wl,--no-whole-archive)
|
||||
else()
|
||||
# Windows: Normal linking
|
||||
target_link_libraries(yaze_agent PUBLIC yaze_test_support)
|
||||
endif()
|
||||
message(STATUS "✓ yaze_agent linked to yaze_test_support")
|
||||
endif()
|
||||
|
||||
set_target_properties(yaze_agent PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
Reference in New Issue
Block a user