mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
9a52a8e1ec
Main benefit is that this will return the correct exit code by default, meaning the lengthy workarounds to properly fail a test aren't needed.
8 lines
420 B
PowerShell
8 lines
420 B
PowerShell
$installationPath = vswhere.exe -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
|
|
if ($installationPath -and (Test-Path "$installationPath\Common7\Tools\vsdevcmd.bat")) {
|
|
& "${env:COMSPEC}" /s /c "`"$installationPath\Common7\Tools\vsdevcmd.bat`" -arch=x64 -no_logo && set" | ForEach-Object {
|
|
$name, $value = $_ -split '=', 2
|
|
"$name=$value" >> $env:GITHUB_ENV
|
|
}
|
|
}
|