Files
OpenZen/.github
Shirona1337 c6c20877ff ci(loader): cache vcpkg installed/ via actions/cache, drop x-gha
The previous run still rebuilt Qt from source on the second push.
vcpkg's x-gha binary cache backend relies on the v1 GitHub Actions
cache API and the ACTIONS_CACHE_URL / ACTIONS_RUNTIME_TOKEN
secrets exported via actions/github-script. On the current
windows-2022 image the v1 API is being phased out (the new
ACTIONS_RESULTS_URL is what's reachable), so x-gha quietly missed
on every run.

Switch to a path-based actions/cache@v4 entry:

  - path: vcpkg\installed + vcpkg-archives
  - key:  vcpkg-qt-${runner.os}-${hash(native/vcpkg.json)}
  - restore-keys: vcpkg-qt-${runner.os}- (warm start on a vcpkg.json bump)

vcpkg.installed is the deployed Qt tree CMake's manifest mode
inspects; if it already contains qtbase[widgets] the first vcpkg
install call is a no-op and CMake configure finishes in seconds.
vcpkg-archives gets fed via the new
VCPKG_BINARY_SOURCES=clear;files,...\vcpkg-archives,readwrite
binary source so transitive package binaries are also persisted
across runs - useful when vcpkg.json changes and only some libs
need rebuilding.

Also drop the now-unused "Export GitHub Actions cache tokens"
step (no x-gha backend, no tokens needed).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 16:06:02 +08:00
..