mirror of
https://github.com/zealdocs/zeal.git
synced 2026-08-30 00:50:51 +08:00
ci(build): fix vcpkg binary cache (again) (#1776)
This commit is contained in:
@@ -157,12 +157,13 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
# Workaround for https://github.com/lukka/run-vcpkg/issues/251.
|
||||
- name: Prepare vcpkg binary cache
|
||||
# TODO: Find a way to include compiler version in the cache key so that
|
||||
# runner image updates don't require manual cache deletion.
|
||||
- name: Restore vcpkg binary cache
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: ${{ github.workspace }}/.vcpkg-cache
|
||||
key: vcpkg-${{ matrix.config.os }}-${{ matrix.config.buildPreset }}-${{ hashFiles(format('build/{0}/vcpkg_installed/vcpkg/status', matrix.config.configurePreset)) }}
|
||||
key: vcpkg-${{ matrix.config.os }}-${{ matrix.config.buildPreset }}-${{ hashFiles('vcpkg.json') }}
|
||||
restore-keys: vcpkg-${{ matrix.config.os }}-${{ matrix.config.buildPreset }}-
|
||||
|
||||
- name: Prepare vcpkg
|
||||
|
||||
@@ -43,7 +43,6 @@ jobs:
|
||||
buildPreset: ninja-multi-vcpkg-portable-release
|
||||
|
||||
env:
|
||||
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/.vcpkg-cache,readwrite
|
||||
VCPKG_BUILD_TYPE: release
|
||||
VCPKG_DEFAULT_TRIPLET: x64-windows
|
||||
ZEAL_RELEASE_BUILD: ON
|
||||
@@ -54,14 +53,6 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
# Workaround for https://github.com/lukka/run-vcpkg/issues/251.
|
||||
- name: Prepare vcpkg binary cache
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: ${{ github.workspace }}/.vcpkg-cache
|
||||
key: vcpkg-${{ matrix.config.os }}-${{ matrix.config.buildPreset }}-${{ hashFiles(format('build/{0}/vcpkg_installed/vcpkg/status', matrix.config.configurePreset)) }}
|
||||
restore-keys: vcpkg-${{ matrix.config.os }}-${{ matrix.config.buildPreset }}-
|
||||
|
||||
- name: Prepare vcpkg
|
||||
uses: lukka/run-vcpkg@v11
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user