Re-add vcpkg binary caching

This commit is contained in:
tooomm 2025-05-10 20:29:07 +02:00
parent 9cf979d154
commit 5acca2be2a

View file

@ -387,16 +387,11 @@ jobs:
tools: ${{matrix.qt_tools}} tools: ${{matrix.qt_tools}}
modules: ${{matrix.qt_modules}} modules: ${{matrix.qt_modules}}
# TODO: re-enable when https://github.com/lukka/run-vcpkg/issues/243 is fixed - name: Setup vcpkg cache
- if: false id: vcpkg-cache
name: Run vcpkg (disabled) uses: TAServers/vcpkg-cache@v3
uses: lukka/run-vcpkg@v11
with: with:
runVcpkgInstall: true token: ${{ secrets.GITHUB_TOKEN }}
doNotCache: false
env:
VCPKG_DEFAULT_TRIPLET: 'x64-windows'
VCPKG_DISABLE_METRICS: 1
- name: Build Cockatrice - name: Build Cockatrice
id: build id: build
@ -406,6 +401,8 @@ jobs:
CMAKE_GENERATOR: '${{env.CMAKE_GENERATOR}}' CMAKE_GENERATOR: '${{env.CMAKE_GENERATOR}}'
CMAKE_GENERATOR_PLATFORM: 'x64' CMAKE_GENERATOR_PLATFORM: 'x64'
QTDIR: '${{github.workspace}}\Qt\${{matrix.qt_version}}\win64_${{matrix.qt_arch}}' QTDIR: '${{github.workspace}}\Qt\${{matrix.qt_version}}\win64_${{matrix.qt_arch}}'
VCPKG_DISABLE_METRICS: 1
VCPKG_BINARY_SOURCES: 'clear;files,${{ steps.vcpkg-cache.outputs.path }},readwrite'
# No need for --parallel flag, MTT is added in the compile script to let cmake/msbuild manage core count, # No need for --parallel flag, MTT is added in the compile script to let cmake/msbuild manage core count,
# project and process parallelism: https://devblogs.microsoft.com/cppblog/improved-parallelism-in-msbuild/ # project and process parallelism: https://devblogs.microsoft.com/cppblog/improved-parallelism-in-msbuild/
run: .ci/compile.sh --server --release --test --package run: .ci/compile.sh --server --release --test --package