chore: update CI and release workflows for toolchain handling

- Modified CI workflow to correctly format the toolchain file argument for CMake.
- Updated release workflow to enhance the release creation process, ensuring the latest release is marked appropriately.
- Added configuration to disable protobuf version resource on Windows to prevent duplicate resource errors during linking.

Benefits:
- Improves build reliability and consistency across different environments.
- Streamlines the release process, making it more intuitive for developers.
This commit is contained in:
scawful
2025-10-17 16:30:50 -04:00
parent 63c2098a21
commit 8f7b2bd6a6
3 changed files with 11 additions and 3 deletions

View File

@@ -103,6 +103,13 @@ set(protobuf_BUILD_PROTOC_BINARIES ON CACHE BOOL "" FORCE)
set(protobuf_WITH_ZLIB ON CACHE BOOL "" FORCE)
set(protobuf_MSVC_STATIC_RUNTIME ON CACHE BOOL "" FORCE)
# Disable protobuf version resource on Windows to avoid LNK1241 duplicate resource errors
# gRPC v1.75.1 protobuf generates version.res that gets linked multiple times
if(WIN32)
set(protobuf_RC_FILEVERSION "" CACHE STRING "" FORCE)
set(protobuf_DISABLE_RTTI ON CACHE BOOL "" FORCE)
endif()
# Abseil configuration
set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "" FORCE)
set(ABSL_ENABLE_INSTALL ON CACHE BOOL "" FORCE)