From ffc5b8d15b08e38e5eb21f240ddb2dced8137cac Mon Sep 17 00:00:00 2001 From: Ryan Walters Date: Sun, 2 Nov 2025 13:06:38 -0600 Subject: [PATCH] fix: set VCPKG_ROOT for rust-sdl2 to find cargo-vcpkg libraries cargo-vcpkg installs to target/vcpkg but rust-sdl2's vcpkg-rs crate auto-detection doesn't reliably find it on all platforms. Set VCPKG_ROOT explicitly to ensure consistent library discovery across platforms. --- .github/workflows/build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e81e07d..ddfa033 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -74,9 +74,11 @@ jobs: sudo apt-get install -y libltdl-dev - name: Setup vcpkg + shell: bash run: | cargo install cargo-vcpkg cargo vcpkg -v build + echo "VCPKG_ROOT=${{ github.workspace }}/target/vcpkg" >> $GITHUB_ENV working-directory: pacman - name: Build