Check installed build tools #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX short identifier: BSL-1.0 | |
name: ninja-msvc17 | |
on: push | |
jobs: | |
job: | |
name: VS 2022 update test | |
runs-on: windows-2022 | |
steps: | |
- name: Run vs_installer.exe | |
shell: pwsh | |
run: | | |
$vspath = 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise' | |
Test-Path -Path $vspath | Should -Be $true | |
$vsinstaller = 'C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe' | |
Test-Path -Path $vsinstaller | Should -Be $true | |
Start-Process -NoNewWindow -Wait -FilePath $vsinstaller -ArgumentList ` | |
'modify', '--installPath', "`"$vspath`"", '--quiet', '--norestart', '--nocache', '--noUpdateInstaller', ` | |
'--add', 'Microsoft.VisualStudio.Component.VC.14.40.17.10.x86.x64' | |
# Get-ChildItem $env:LOCALAPPDATA\Temp\dd_installer_* | Get-Content | |
Get-ChildItem -Path (Join-Path $vspath 'VC\Tools\MSVC') | |
#$vsbin = 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64' | |
#Test-Path -Path $vsbin | Should -Be $true | |
#$clexe = Join-Path $vsbin 'cl.exe' | |
#Test-Path -Path $clexe | Should -Be $true | |
#& $clexe /? |