mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
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:
15
.github/workflows/release-build.yml
vendored
15
.github/workflows/release-build.yml
vendored
@@ -49,12 +49,10 @@ jobs:
|
|||||||
if: matrix.platform == 'windows'
|
if: matrix.platform == 'windows'
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
|
||||||
- name: Setup vcpkg
|
- name: Bootstrap vcpkg
|
||||||
id: setup-vcpkg
|
run: |
|
||||||
if: matrix.platform == 'windows'
|
git clone https://github.com/microsoft/vcpkg.git
|
||||||
uses: lukka/run-vcpkg@v11
|
./vcpkg/bootstrap-vcpkg.bat
|
||||||
with:
|
|
||||||
runVcpkgInstall: true
|
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
if: matrix.platform == 'windows'
|
if: matrix.platform == 'windows'
|
||||||
@@ -63,8 +61,11 @@ jobs:
|
|||||||
-B build
|
-B build
|
||||||
-G Ninja
|
-G Ninja
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
-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 }}"
|
"-DCUBED_VERSION=${{ steps.version.outputs.version }}"
|
||||||
"-DCMAKE_TOOLCHAIN_FILE=${{ steps.setup-vcpkg.outputs.vcpkg-root }}/scripts/buildsystems/vcpkg.cmake"
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build --config Release --target Cubed
|
run: cmake --build build --config Release --target Cubed
|
||||||
|
|||||||
Reference in New Issue
Block a user