From 746d29bbcd9856c37184a1c9e6c08ccdc91fdac6 Mon Sep 17 00:00:00 2001 From: scawful Date: Thu, 9 Oct 2025 08:11:06 -0400 Subject: [PATCH] chore: Add vcpkg setup for Windows in CI workflow - Introduced a step to set up vcpkg specifically for Windows runners, ensuring consistent dependency management. - Updated CMake configuration to utilize the vcpkg toolchain file, enhancing cross-platform build compatibility. --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66cfc335..7a0a47e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,6 +48,13 @@ jobs: with: submodules: recursive + - name: Set up vcpkg (Windows only) + if: runner.os == 'Windows' + uses: lukka/run-vcpkg@v11 + with: + vcpkgGitCommitId: 'c8696863d371ab7f46e213d8f5ca923c4aef2a00' + runVcpkgInstall: true + - name: Install Dependencies shell: bash run: | @@ -72,6 +79,7 @@ jobs: if [[ "${{ runner.os }}" == "Windows" ]]; then cmake -B build -G "Visual Studio 17 2022" -A x64 \ -DCMAKE_BUILD_TYPE=$BUILD_TYPE \ + -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake \ -DYAZE_MINIMAL_BUILD=ON \ -DYAZE_ENABLE_ROM_TESTS=OFF else