From cd927a7466e281f4557ba964647f1b5e7da891ed Mon Sep 17 00:00:00 2001 From: Tomasz Leman Date: Fri, 3 Apr 2026 14:33:26 +0200 Subject: [PATCH] workflows: use winget for ninja and gperf on Windows Replace Chocolatey with winget for installing ninja and gperf on Windows CI builds. The choco install of gperf has been failing sporadically in CI, causing random build failures. Since PowerShell 7.6 GA, winget now properly refreshes the PATH environment variable after installations, which should provide a more stable solution. See: https://github.com/microsoft/winget-cli/issues/549 Signed-off-by: Tomasz Leman --- .github/workflows/zephyr.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/zephyr.yml b/.github/workflows/zephyr.yml index eab5633b236c..2a108e4c4e8f 100644 --- a/.github/workflows/zephyr.yml +++ b/.github/workflows/zephyr.yml @@ -389,15 +389,17 @@ jobs: run: pip install -r zephyr/scripts/requirements.txt # Ninja has been coming and going, see #8250 - - name: choco install ninja + # Using winget instead of choco - winget now properly refreshes PATH + # since PowerShell 7.6 (see https://github.com/microsoft/winget-cli/issues/549) + - name: Install ninja run: | - choco install ninja + winget install Ninja-build.Ninja --accept-source-agreements --accept-package-agreements ninja.exe --version - # Install GPERF for Windows + # Install GPERF for Windows using winget - name: Install gperf run: | - choco install gperf + winget install oss-winget.gperf --accept-source-agreements --accept-package-agreements gperf --version # MSYS2 provides gcc x64_86 toolchain & openssl