Skip to content

Commit afdeecb

Browse files
committed
wip
1 parent eb9dd1a commit afdeecb

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,10 +651,16 @@ jobs:
651651
- name: Install vcpkg
652652
shell: pwsh
653653
run: |
654+
if (Test-Path $env:VCPKG_ROOT) {
655+
if (-not (Test-Path "$env:VCPKG_ROOT\.git")) {
656+
Write-Host "Removing incomplete vcpkg directory..."
657+
Remove-Item -Recurse -Force $env:VCPKG_ROOT
658+
}
659+
}
654660
if (-not (Test-Path "$env:VCPKG_ROOT\.git")) {
655661
git clone --quiet https://github.com/microsoft/vcpkg.git $env:VCPKG_ROOT
656662
}
657-
cd $env:VCPKG_ROOT
663+
Set-Location $env:VCPKG_ROOT
658664
git -c advice.detachedHead=false checkout $env:CI_VCPKG_TAG
659665
.\bootstrap-vcpkg.bat -disableMetrics
660666
Add-Content triplets\x64-windows-static.cmake "set(VCPKG_BUILD_TYPE release)"
@@ -767,10 +773,16 @@ jobs:
767773
- name: Install vcpkg
768774
shell: pwsh
769775
run: |
776+
if (Test-Path $env:VCPKG_ROOT) {
777+
if (-not (Test-Path "$env:VCPKG_ROOT\.git")) {
778+
Write-Host "Removing incomplete vcpkg directory..."
779+
Remove-Item -Recurse -Force $env:VCPKG_ROOT
780+
}
781+
}
770782
if (-not (Test-Path "$env:VCPKG_ROOT\.git")) {
771783
git clone --quiet https://github.com/microsoft/vcpkg.git $env:VCPKG_ROOT
772784
}
773-
cd $env:VCPKG_ROOT
785+
Set-Location $env:VCPKG_ROOT
774786
git -c advice.detachedHead=false checkout $env:CI_VCPKG_TAG
775787
.\bootstrap-vcpkg.bat -disableMetrics
776788
Add-Content triplets\x64-windows-static.cmake "set(VCPKG_BUILD_TYPE release)"

0 commit comments

Comments
 (0)