Skip to content

Commit

Permalink
Need to wait for the install to complete
Browse files Browse the repository at this point in the history
  • Loading branch information
demianmnave committed Nov 19, 2024
1 parent f3a01cd commit e2caf3c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ninja-msvc17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@ jobs:
run: |
$vsinstaller = 'C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe'
Test-Path -Path $vsinstaller | Should -Be $true
& $vsinstaller modify --add 'Microsoft.VisualStudio.Component.VC.14.40.17.10.x86.x64'
$mod_args = @(
'modify'
'--add'
'Microsoft.VisualStudio.Component.VC.14.40.17.10.x86.x64'
'--quiet'
'--wait'
)
$modify = Start-Process -FilePath $vsinstaller -ArgumentList @mod_args -Wait -PassThru
Write-Host $modify.ExitCode
$vsbin = 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64'
$clexe = Join-Path $vsbin 'cl.exe'
Test-Path -Path $clexe | Should -Be $true
Expand Down

0 comments on commit e2caf3c

Please sign in to comment.