Skip to content

Commit

Permalink
! AppVeyor: force rebuild vcpkg, workaround for microsoft/vcpkg#6946
Browse files Browse the repository at this point in the history
  • Loading branch information
Farwaykorse committed Jun 18, 2019
1 parent ea4abe1 commit e394f6b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,13 @@ install:
} else { Write-Warning "Failed to find ninja.exe in expected location." }
}
- ps: |
# Install vcpkg if not available.
if(-not (Test-Path C:\Tools\vcpkg\vcpkg.exe) ) {
if (Test-Path C:\Tools\vcpkg\vcpkg.exe) {
cd C:\Tools\vcpkg; git pull --quiet
if ($(vcpkg version) -match "version 2018\.11\.23") {
Write-Warning "Temporary fix updating vcpkg ..."
.\bootstrap-vcpkg.bat 1>$null
}
} else {
Write-Warning "vcpkg not installed in expected location"
cd C:\Tools
if (Test-Path .\vcpkg) { Rename-Item vcpkg vcpkg_tmp 1>$null }
Expand All @@ -240,7 +245,6 @@ install:
$env:PATH = "C:\Tools\vcpkg;$env:PATH"
if (Test-Path .\vcpkg_tmp) { Move-Item .\vcpkg_tmp\* .\vcpkg 1>$null }
}
- cd C:\Tools\vcpkg & git pull --quiet
- vcpkg list
- vcpkg update
- ps: |
Expand All @@ -251,7 +255,7 @@ install:
) {
if ($(vcpkg version) -match "version 0\.0\.113") {
Write-Warning "Temporary fix updating vcpkg ..."
.\bootstrap-vcpkg.bat 1>$null
bootstrap-vcpkg.bat 1>$null
vcpkg integrate install 1>$null
}
vcpkg upgrade --no-dry-run
Expand Down

0 comments on commit e394f6b

Please sign in to comment.