ci/windows: Install Graphics-Tools package on the base image
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17600>
This commit is contained in:
@@ -18,7 +18,7 @@ variables:
|
||||
KERNEL_ROOTFS_TAG: "2022-08-08-skqp"
|
||||
|
||||
WINDOWS_X64_VS_PATH: "windows/x64_vs"
|
||||
WINDOWS_X64_VS_TAG: "2022-06-15-vs-winsdk"
|
||||
WINDOWS_X64_VS_TAG: "2022-08-04-graphics-tools"
|
||||
|
||||
WINDOWS_X64_BUILD_PATH: "windows/x64_build"
|
||||
WINDOWS_X64_BUILD_TAG: "2022-06-15-vs-winsdk"
|
||||
|
@@ -71,3 +71,25 @@ if (!$?) {
|
||||
Exit 1
|
||||
}
|
||||
Remove-Item C:\vulkan-runtime.exe -Force
|
||||
|
||||
Get-Date
|
||||
Write-Host "Installing graphics tools (DirectX debug layer)"
|
||||
Set-Service -Name wuauserv -StartupType Manual
|
||||
if (!$?) {
|
||||
Write-Host "Failed to enable Windows Update"
|
||||
Exit 1
|
||||
}
|
||||
|
||||
For ($i = 0; $i -lt 5; $i++) {
|
||||
Dism /online /quiet /add-capability /capabilityname:Tools.Graphics.DirectX~~~~0.0.1.0
|
||||
$graphics_tools_installed = $?
|
||||
if ($graphics_tools_installed) {
|
||||
Break
|
||||
}
|
||||
}
|
||||
|
||||
if (!$graphics_tools_installed) {
|
||||
Write-Host "Failed to install graphics tools"
|
||||
Get-Content C:\Windows\Logs\DISM\dism.log
|
||||
Exit 1
|
||||
}
|
||||
|
Reference in New Issue
Block a user