Enhance Windows vcpkg setup in release workflow

- Added caching for vcpkg dependencies to improve build efficiency on Windows.
- Included a verification step to check installed vcpkg packages and ensure zlib is present.
- Updated vcpkg installation step to run automatically, streamlining the setup process.
This commit is contained in:
scawful
2025-09-26 22:31:34 -04:00
parent 69a730983f
commit cf28aa14da

View File

@@ -213,11 +213,35 @@ jobs:
# Install Homebrew dependencies needed for UI tests and full builds # Install Homebrew dependencies needed for UI tests and full builds
brew install pkg-config libpng boost abseil ninja brew install pkg-config libpng boost abseil ninja
- name: Set up vcpkg cache (Windows)
if: runner.os == 'Windows'
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/vcpkg
${{ github.workspace }}/vcpkg_installed
key: vcpkg-${{ matrix.vcpkg_triplet }}-${{ hashFiles('vcpkg.json') }}
restore-keys: |
vcpkg-${{ matrix.vcpkg_triplet }}-
- name: Set up vcpkg (Windows) - name: Set up vcpkg (Windows)
if: runner.os == 'Windows' if: runner.os == 'Windows'
uses: lukka/run-vcpkg@v11 uses: lukka/run-vcpkg@v11
with: with:
vcpkgGitCommitId: 'c8696863d371ab7f46e213d8f5ca923c4aef2a00' vcpkgGitCommitId: 'c8696863d371ab7f46e213d8f5ca923c4aef2a00'
runVcpkgInstall: true
vcpkgJsonGlob: '**/vcpkg.json'
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
- name: Verify vcpkg dependencies (Windows)
if: runner.os == 'Windows'
run: |
echo "Checking installed vcpkg packages..."
${{ github.workspace }}/vcpkg/vcpkg.exe list
echo "Checking for zlib specifically..."
${{ github.workspace }}/vcpkg/vcpkg.exe list | findstr zlib || echo "zlib not found!"
echo "vcpkg integration status:"
${{ github.workspace }}/vcpkg/vcpkg.exe integrate install
# Configure CMake # Configure CMake
- name: Configure CMake (Linux/macOS) - name: Configure CMake (Linux/macOS)