mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
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:
parent
4752655649
commit
9921f5cf0c
2 changed files with 23 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue