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.
This commit is contained in:
Ryan Walters
2025-11-02 13:06:38 -06:00
parent 4f49355892
commit ffc5b8d15b

View File

@@ -74,9 +74,11 @@ jobs:
sudo apt-get install -y libltdl-dev sudo apt-get install -y libltdl-dev
- name: Setup vcpkg - name: Setup vcpkg
shell: bash
run: | run: |
cargo install cargo-vcpkg cargo install cargo-vcpkg
cargo vcpkg -v build cargo vcpkg -v build
echo "VCPKG_ROOT=${{ github.workspace }}/target/vcpkg" >> $GITHUB_ENV
working-directory: pacman working-directory: pacman
- name: Build - name: Build