Skip to content

Commit 819e717

Browse files
committed
ci(vcpkg): Temporarily allow cache save on PR branches for testing
1 parent 0e8e6f0 commit 819e717

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ jobs:
206206
Write-Host "github.ref='${{ github.ref }}'" -ForegroundColor Cyan
207207
208208
- name: Save vcpkg binary cache
209-
if: ${{ always() && startsWith(inputs.preset, 'win32') && steps.vcpkg_cache.outputs.cache-hit != 'true' && github.ref == 'refs/heads/main' }}
209+
# TODO: Add back && github.ref == 'refs/heads/main' after testing to prevent PR cache races
210+
if: ${{ always() && startsWith(inputs.preset, 'win32') && steps.vcpkg_cache.outputs.cache-hit != 'true' }}
210211
uses: actions/cache/save@v4
211212
with:
212213
path: ${{ github.workspace }}\vcpkg-bincache

0 commit comments

Comments
 (0)