Skip to content

Commit 6e3901c

Browse files
committed
fix windows build
1 parent c543840 commit 6e3901c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ci-pr-validation.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,15 @@ jobs:
260260
Pop-Location
261261
}
262262
263+
- name: Ensure vcpkg has full history(windows)
264+
if: runner.os == 'Windows'
265+
shell: pwsh
266+
run: |
267+
$isShallow = (git -C "${{ env.VCPKG_ROOT }}" rev-parse --is-shallow-repository).Trim()
268+
if ($isShallow -eq "true") {
269+
git -C "${{ env.VCPKG_ROOT }}" fetch --unshallow
270+
}
271+
263272
- name: remove system vcpkg(windows)
264273
if: runner.os == 'Windows'
265274
run: rm -rf "$VCPKG_INSTALLATION_ROOT"

0 commit comments

Comments
 (0)