Skip to content

Commit

Permalink
ci: Add vcpkg package caching for Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
silviot committed Dec 7, 2024
1 parent 51a1bd5 commit f37eef8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,21 @@ jobs:
echo "VCPKG_ROOT=C:\vcpkg" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: pwsh

# Cache vcpkg packages
- name: Cache vcpkg
uses: actions/cache@v3
with:
path: |
C:\vcpkg\installed
C:\vcpkg\packages
key: vcpkg-${{ matrix.arch }}-${{ hashFiles('**/vcpkg.json', '.github/workflows/build.yml') }}
restore-keys: |
vcpkg-${{ matrix.arch }}-
- name: Install GTK4 and dependencies
run: |
Write-Host "Installing GTK4 and dependencies for $env:VCPKG_TRIPLET..."
# Only install if not found in cache
vcpkg install pkgconf:$env:VCPKG_TRIPLET
vcpkg install glib:$env:VCPKG_TRIPLET
vcpkg install gtk4:$env:VCPKG_TRIPLET
Expand Down

0 comments on commit f37eef8

Please sign in to comment.