File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 45
45
$vcpkgTriplet = '${{ steps.set-variables.outputs.vcpkg_triplet }}'
46
46
$cmakeSharedLibs = $(if ('${{ matrix.libs }}' -eq 'shared') { 'ON' } else { 'OFF' })
47
47
$msbuildArch = $(if ('${{ matrix.arch }}' -eq 'x64') { 'X64' } else { 'Win32' })
48
- $env:VCPKG_BINARY_SOURCES = "clear;files,${{ steps.configure-build.working-directory }}/vcpkg_cache/,$(if ${{ steps.cache-vcpkg.outputs.cache-hit }} { 'r' } else { 'rw' })"
48
+
49
+ $cachedBinaries = Join-Path $(Get-Location) './vcpkg_cache/' -Resolve
50
+ $cacheAccess = $(if ${{ steps.cache-vcpkg.outputs.cache-hit }} { 'r' } else { 'rw' })
51
+ $env:VCPKG_BINARY_SOURCES = "clear;files,$cachedBinaries,$cacheAccess"
49
52
50
53
cmake "-DCMAKE_TOOLCHAIN_FILE=$vcpkgToolchain" "-DVCPKG_TARGET_TRIPLET=$vcpkgTriplet" "-DBUILD_SHARED_LIBS=$cmakeSharedLibs" -G "Visual Studio 17 2022" -A "$msbuildArch" ${{ github.workspace }}
51
54
You can’t perform that action at this time.
0 commit comments