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:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -368,7 +368,7 @@ jobs:
|
|||||||
"-S", ".",
|
"-S", ".",
|
||||||
"-B", "build",
|
"-B", "build",
|
||||||
"-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}",
|
"-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}",
|
||||||
"-DCMAKE_TOOLCHAIN_FILE=$toolchain",
|
"`"-DCMAKE_TOOLCHAIN_FILE=$toolchain`"",
|
||||||
"-DVCPKG_TARGET_TRIPLET=x64-windows-static",
|
"-DVCPKG_TARGET_TRIPLET=x64-windows-static",
|
||||||
"-DVCPKG_MANIFEST_MODE=ON",
|
"-DVCPKG_MANIFEST_MODE=ON",
|
||||||
"-DYAZE_BUILD_TESTS=ON",
|
"-DYAZE_BUILD_TESTS=ON",
|
||||||
|
|||||||
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@@ -103,7 +103,7 @@ jobs:
|
|||||||
-DCMAKE_BUILD_TYPE=Release `
|
-DCMAKE_BUILD_TYPE=Release `
|
||||||
-DCMAKE_C_COMPILER=clang-cl `
|
-DCMAKE_C_COMPILER=clang-cl `
|
||||||
-DCMAKE_CXX_COMPILER=clang-cl `
|
-DCMAKE_CXX_COMPILER=clang-cl `
|
||||||
-DCMAKE_TOOLCHAIN_FILE=$toolchain `
|
"-DCMAKE_TOOLCHAIN_FILE=$toolchain" `
|
||||||
-DVCPKG_TARGET_TRIPLET=x64-windows-static `
|
-DVCPKG_TARGET_TRIPLET=x64-windows-static `
|
||||||
-DVCPKG_MANIFEST_MODE=ON `
|
-DVCPKG_MANIFEST_MODE=ON `
|
||||||
-DYAZE_BUILD_TESTS=OFF `
|
-DYAZE_BUILD_TESTS=OFF `
|
||||||
@@ -387,7 +387,7 @@ jobs:
|
|||||||
|
|
||||||
cat release_notes.md
|
cat release_notes.md
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create or Update Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.tag.outputs.tag }}
|
tag_name: ${{ steps.tag.outputs.tag }}
|
||||||
@@ -395,6 +395,7 @@ jobs:
|
|||||||
body_path: release_notes.md
|
body_path: release_notes.md
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: ${{ contains(steps.tag.outputs.tag, '-') }}
|
prerelease: ${{ contains(steps.tag.outputs.tag, '-') }}
|
||||||
|
make_latest: ${{ !contains(steps.tag.outputs.tag, '-') }}
|
||||||
files: |
|
files: |
|
||||||
artifacts/yaze-windows-x64/*
|
artifacts/yaze-windows-x64/*
|
||||||
artifacts/yaze-macos-universal/*
|
artifacts/yaze-macos-universal/*
|
||||||
|
|||||||
@@ -103,6 +103,13 @@ set(protobuf_BUILD_PROTOC_BINARIES ON CACHE BOOL "" FORCE)
|
|||||||
set(protobuf_WITH_ZLIB ON CACHE BOOL "" FORCE)
|
set(protobuf_WITH_ZLIB ON CACHE BOOL "" FORCE)
|
||||||
set(protobuf_MSVC_STATIC_RUNTIME 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
|
# Abseil configuration
|
||||||
set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "" FORCE)
|
set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "" FORCE)
|
||||||
set(ABSL_ENABLE_INSTALL ON CACHE BOOL "" FORCE)
|
set(ABSL_ENABLE_INSTALL ON CACHE BOOL "" FORCE)
|
||||||
|
|||||||
Reference in New Issue
Block a user