ci/microsoft: Downgrading WinFlexBison.win_flex_bison to version 2.5.24

This is achieved by provide version parameter to winget-cli

Fixes: 9592686ca0 ("ci/windows: Use winget to install packages and install Microsoft.WindowsWDK.10.0.26100")

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13968

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
(cherry picked from commit 84cce2a739)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38803>
This commit is contained in:
Yonggang Luo 2025-11-20 00:09:04 +08:00 committed by Dylan Baker
parent 5b6d043852
commit 8069763b02
2 changed files with 11 additions and 10 deletions

View file

@ -36,22 +36,23 @@ $MACHINE_PATH=[System.Environment]::GetEnvironmentVariable('PATH', [System.Envir
Write-Output "Before winget install USER_PATH:$USER_PATH MACHINE_PATH:$MACHINE_PATH"
$Packages = @(
'Microsoft.WindowsWDK.10.0.26100',
'Python.Python.3.13',
'Ninja-build.Ninja',
'Kitware.CMake',
'Git.Git',
'WinFlexBison.win_flex_bison',
'bloodrock.pkg-config-lite'
'Microsoft.WindowsWDK.10.0.26100,10.1.26100.6584',
'Python.Python.3.13,3.13.9',
'Ninja-build.Ninja,1.13.1',
'Kitware.CMake,4.1.3',
'Git.Git,2.52.0',
'WinFlexBison.win_flex_bison,2.5.24',
'bloodrock.pkg-config-lite,0.28-1'
)
$ProgressPreference = "SilentlyContinue"
New-Item -Force -ItemType 'directory' -Name 'flexbison' -Path 'C:\temp'
foreach ($package in $Packages)
{
Write-Output "Installing $package with winget"
$package_id, $package_version = $package -split ',', 2
Write-Output "Installing $package_id with version $package_version by winget"
For ($i = 0; $i -lt 5; $i++) {
winget install --verbose --silent --accept-package-agreements --source winget --exact --id $package --log C:\temp\wdk-install.log
winget install --verbose --silent --accept-package-agreements --source winget --exact --id $package_id --version $package_version --log C:\temp\wdk-install.log
$packages_installed = $?
if ($packages_installed) {
Break

View file

@ -794,7 +794,7 @@
"description": "ci/microsoft: Downgrading WinFlexBison.win_flex_bison to version 2.5.24",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "9592686ca0d106dbdc3af6ecd30a3a350a63c582",
"notes": null