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
This commit is contained in:
zhenyan121
2026-07-02 16:06:46 +08:00
committed by GitHub
parent 30f843ba6b
commit 0f75144b2f

View File

@@ -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