refactor(ci): streamline Protobuf and gRPC configuration in workflows

- Updated CI and release workflows to remove unnecessary Protobuf DLL flags and added gRPC plugin build options for better control over the build process.
- Ensured consistent C and C++ flags across both workflows, enhancing compatibility and reducing potential issues.

Benefits:
- Improves build clarity and stability by refining the configuration for Protobuf and gRPC, leading to a more efficient CI process.
This commit is contained in:
scawful
2025-10-14 16:35:03 -04:00
parent ce36889338
commit 8ba1d68bad
2 changed files with 22 additions and 8 deletions

View File

@@ -421,12 +421,19 @@ jobs:
-DVCPKG_MANIFEST_MODE=ON `
-DVCPKG_INSTALL_OPTIONS="--debug" `
-DOPENSSL_NO_ASM=ON `
-DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H /DPROTOBUF_USE_DLLS=0 /DPROTOBUF_STATIC_DEFINE" `
-DCMAKE_C_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H /DPROTOBUF_USE_DLLS=0 /DPROTOBUF_STATIC_DEFINE" `
-DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H" `
-DCMAKE_C_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H" `
-DProtobuf_USE_STATIC_LIBS=ON `
-DProtobuf_MSVC_STATIC_RUNTIME=ON `
-DProtobuf_IMPORT_PREFIX="" `
-DProtobuf_IMPORT_SUFFIX="" `
-DgRPC_BUILD_GRPC_CPP_PLUGIN=OFF `
-DgRPC_BUILD_GRPC_CSHARP_PLUGIN=OFF `
-DgRPC_BUILD_GRPC_NODE_PLUGIN=OFF `
-DgRPC_BUILD_GRPC_OBJECTIVE_C_PLUGIN=OFF `
-DgRPC_BUILD_GRPC_PHP_PLUGIN=OFF `
-DgRPC_BUILD_GRPC_PYTHON_PLUGIN=OFF `
-DgRPC_BUILD_GRPC_RUBY_PLUGIN=OFF `
-DgRPC_USE_PROTO_LITE=ON `
-DgRPC_USE_ABSL=ON `
-DYAZE_BUILD_TESTS=ON `
-DYAZE_BUILD_EMU=ON `
-DYAZE_ENABLE_ROM_TESTS=OFF `

View File

@@ -430,12 +430,19 @@ jobs:
-DVCPKG_TARGET_TRIPLET=x64-windows-static `
-DVCPKG_MANIFEST_MODE=ON `
-DOPENSSL_NO_ASM=ON `
-DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H /DPROTOBUF_USE_DLLS=0 /DPROTOBUF_STATIC_DEFINE" `
-DCMAKE_C_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H /DPROTOBUF_USE_DLLS=0 /DPROTOBUF_STATIC_DEFINE" `
-DCMAKE_CXX_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H" `
-DCMAKE_C_FLAGS="/Dgoogle_protobuf_undef_DWORD=1 /D__PRFCHWINTRIN_H" `
-DProtobuf_USE_STATIC_LIBS=ON `
-DProtobuf_MSVC_STATIC_RUNTIME=ON `
-DProtobuf_IMPORT_PREFIX="" `
-DProtobuf_IMPORT_SUFFIX="" `
-DgRPC_BUILD_GRPC_CPP_PLUGIN=OFF `
-DgRPC_BUILD_GRPC_CSHARP_PLUGIN=OFF `
-DgRPC_BUILD_GRPC_NODE_PLUGIN=OFF `
-DgRPC_BUILD_GRPC_OBJECTIVE_C_PLUGIN=OFF `
-DgRPC_BUILD_GRPC_PHP_PLUGIN=OFF `
-DgRPC_BUILD_GRPC_PYTHON_PLUGIN=OFF `
-DgRPC_BUILD_GRPC_RUBY_PLUGIN=OFF `
-DgRPC_USE_PROTO_LITE=ON `
-DgRPC_USE_ABSL=ON `
-DYAZE_BUILD_TESTS=ON `
-DYAZE_BUILD_EMU=ON `
-DYAZE_BUILD_Z3ED=ON `