@@ -172,13 +172,6 @@ jobs:
172172 run : |
173173 cmake --build --preset ${{ inputs.preset }}
174174
175- - name : Save vcpkg binary cache
176- if : startsWith(inputs.preset, 'win32') && steps.vcpkg_cache.outputs.cache-hit != 'true' && github.ref == 'refs/heads/main'
177- uses : actions/cache/save@v4
178- with :
179- path : ${{ github.workspace }}\vcpkg-bincache
180- key : vcpkg-bincache-${{ runner.os }}-msvc${{ steps.vcpkg_key.outputs.msvc }}-baseline${{ steps.vcpkg_key.outputs.baseline }}-${{ steps.vcpkg_key.outputs.triplet }}
181-
182175 - name : Collect ${{ inputs.game }} ${{ inputs.preset }}${{ inputs.tools && '+t' || '' }}${{ inputs.extras && '+e' || '' }} Artifact
183176 shell : pwsh
184177 run : |
@@ -201,3 +194,20 @@ jobs:
201194 path : build\${{ inputs.preset }}\${{ inputs.game }}\artifacts
202195 retention-days : 30
203196 if-no-files-found : error
197+
198+ - name : Debug vcpkg cache state
199+ if : ${{ always() && startsWith(inputs.preset, 'win32') }}
200+ shell : pwsh
201+ run : |
202+ Write-Host "vcpkg_cache.cache-hit='${{ steps.vcpkg_cache.outputs.cache-hit }}'" -ForegroundColor Cyan
203+ Write-Host "vcpkg_key.msvc='${{ steps.vcpkg_key.outputs.msvc }}'" -ForegroundColor Cyan
204+ Write-Host "vcpkg_key.baseline='${{ steps.vcpkg_key.outputs.baseline }}'" -ForegroundColor Cyan
205+ Write-Host "vcpkg_key.triplet='${{ steps.vcpkg_key.outputs.triplet }}'" -ForegroundColor Cyan
206+ Write-Host "github.ref='${{ github.ref }}'" -ForegroundColor Cyan
207+
208+ - name : Save vcpkg binary cache
209+ if : ${{ always() && startsWith(inputs.preset, 'win32') && steps.vcpkg_cache.outputs.cache-hit != 'true' && github.ref == 'refs/heads/main' }}
210+ uses : actions/cache/save@v4
211+ with :
212+ path : ${{ github.workspace }}\vcpkg-bincache
213+ key : vcpkg-bincache-${{ runner.os }}-msvc${{ steps.vcpkg_key.outputs.msvc }}-baseline${{ steps.vcpkg_key.outputs.baseline }}-${{ steps.vcpkg_key.outputs.triplet }}
0 commit comments