Skip to content

Commit cd927a7

Browse files
committed
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: microsoft/winget-cli#549 Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
1 parent 126674f commit cd927a7

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/zephyr.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,15 +389,17 @@ jobs:
389389
run: pip install -r zephyr/scripts/requirements.txt
390390

391391
# Ninja has been coming and going, see #8250
392-
- name: choco install ninja
392+
# Using winget instead of choco - winget now properly refreshes PATH
393+
# since PowerShell 7.6 (see https://github.com/microsoft/winget-cli/issues/549)
394+
- name: Install ninja
393395
run: |
394-
choco install ninja
396+
winget install Ninja-build.Ninja --accept-source-agreements --accept-package-agreements
395397
ninja.exe --version
396398
397-
# Install GPERF for Windows
399+
# Install GPERF for Windows using winget
398400
- name: Install gperf
399401
run: |
400-
choco install gperf
402+
winget install oss-winget.gperf --accept-source-agreements --accept-package-agreements
401403
gperf --version
402404
403405
# MSYS2 provides gcc x64_86 toolchain & openssl

0 commit comments

Comments
 (0)