From 0f75144b2f1b8c6df149cb99d800d4ead37c791a Mon Sep 17 00:00:00 2001 From: zhenyan121 <104683324+zhenyan121@users.noreply.github.com> Date: Thu, 2 Jul 2026 16:06:46 +0800 Subject: [PATCH] fix: release build (#26) * ci(release): use local vcpkg bootstrap and custom release triplet * refactor(triplets): set arch and linkage explicitly in x64-windows-release * ci(release-build): remove unused vcpkg overlay triplets * ci(release-build): add VCPKG_BUILD_TYPE and disable testing --- .github/workflows/release-build.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index e8a8ef3..3dbc82f 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -49,12 +49,10 @@ jobs: if: matrix.platform == 'windows' uses: ilammy/msvc-dev-cmd@v1 - - name: Setup vcpkg - id: setup-vcpkg - if: matrix.platform == 'windows' - uses: lukka/run-vcpkg@v11 - with: - runVcpkgInstall: true + - name: Bootstrap vcpkg + run: | + git clone https://github.com/microsoft/vcpkg.git + ./vcpkg/bootstrap-vcpkg.bat - name: Configure if: matrix.platform == 'windows' @@ -63,8 +61,11 @@ jobs: -B build -G Ninja -DCMAKE_BUILD_TYPE=Release + -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake + -DVCPKG_TARGET_TRIPLET=x64-windows-release + -DVCPKG_BUILD_TYPE=release + -DBUILD_TESTING=OFF "-DCUBED_VERSION=${{ steps.version.outputs.version }}" - "-DCMAKE_TOOLCHAIN_FILE=${{ steps.setup-vcpkg.outputs.vcpkg-root }}/scripts/buildsystems/vcpkg.cmake" - name: Build run: cmake --build build --config Release --target Cubed