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