Skip to content

Commit cfa64a3

Browse files
committed
Add step to install ATL components in CI workflow
1 parent b763475 commit cfa64a3

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,27 @@ jobs:
7373
$x.Save($filePath)
7474
}
7575
76+
- name: Install ATL components
77+
shell: pwsh
78+
run: |
79+
$vswhere = Join-Path ${env:ProgramFiles(x86)} "Microsoft Visual Studio\Installer\vswhere.exe"
80+
$vsInstaller = Join-Path ${env:ProgramFiles(x86)} "Microsoft Visual Studio\Installer\vs_installer.exe"
81+
$installPath = & $vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath
82+
83+
if (-not $installPath) {
84+
throw "Visual Studio installation path not found"
85+
}
86+
87+
& $vsInstaller modify `
88+
--installPath "$installPath" `
89+
--add Microsoft.VisualStudio.Component.VC.ATL `
90+
--add Microsoft.VisualStudio.Component.VC.ATL.ARM64 `
91+
--quiet --norestart --wait
92+
93+
if ($LASTEXITCODE -ne 0) {
94+
throw "Visual Studio component installation failed with exit code $LASTEXITCODE"
95+
}
96+
7697
- name: Setup devcmd
7798
uses: ilammy/msvc-dev-cmd@v1
7899

0 commit comments

Comments
 (0)