* binary cache and manifest * update packages * udpate * add cache to private pipeline * next try * aver * other * again * aver quick * more * this way * again * one more * print * test * use depend * more deps * dep * Apply suggestions from code review Co-authored-by: Daniel Jurek <djurek@microsoft.com> * updated to use group variable * update identity * end line * Update vcpkg.json * Apply suggestions from code review * cspell * remove comment * updates * make cache mode depend on SAS env var * map env var only for internal pipelines * other approach * what about this * and this * try * amd * another * extra step * typo * override for internal * use default succeded * azure core update manifest * a * run cmake-generate nightly as well * check for SAS * check cache * no secret * fix is secret * pass explicit * use secret all the time * char * One more * export * echos * last * array * remove question * ok * weird * use account key * substring * VCPKG_BINARY_SOURCES * Add module installation * task: * Correct pathing for module * update source gen * format * update spelling * IsWindoows * Use pwsh * Cannot clobber with PSModule-Helpers. Attempt plain install * Attempt plain install * Revert unnecessary change to Update-DocsMsToc.ps1 * template ready * curl is required on Windows as well for some CI gates * attestation * fix format Co-authored-by: Daniel Jurek <djurek@microsoft.com>
28 lines
574 B
PowerShell
28 lines
574 B
PowerShell
[CmdletBinding()]
|
|
Param (
|
|
[Parameter()]
|
|
[ValidateNotNullOrEmpty()]
|
|
[string] $Ref = (Get-Content "$PSScriptRoot/../vcpkg-commit.txt"),
|
|
|
|
[Parameter()]
|
|
[ValidateNotNullOrEmpty()]
|
|
[string] $VcpkgPath = "$PSScriptRoot/../../vcpkg"
|
|
)
|
|
|
|
$initialDirectory = Get-Location
|
|
|
|
try {
|
|
git clone https://github.com/Microsoft/vcpkg $VcpkgPath
|
|
Set-Location $VcpkgPath
|
|
git fetch --tags
|
|
git checkout $Ref
|
|
|
|
if ($IsWindows) {
|
|
.\bootstrap-vcpkg.bat
|
|
} else {
|
|
./bootstrap-vcpkg.sh
|
|
}
|
|
} finally {
|
|
Set-Location $initialDirectory
|
|
}
|