Skip to content

Commit fa8a18d

Browse files
committed
cpp-packaging.yml: install patch.exe via choco on Windows to avoid Strawberry Perl's crashing patch.exe
1 parent dc13f63 commit fa8a18d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/cpp-packaging.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,17 @@ jobs:
424424
verbose_flag=--verbose
425425
fi
426426
echo "VERBOSE_FLAG=${verbose_flag}" >> $GITHUB_ENV
427+
428+
# Install the latest version of GNU patch to avoid using the problematic patch.exe
429+
# from Strawberry Perl which sometimes crashes (Googlers see b/236958574).
430+
- name: Install patch.exe (Windows)
431+
if: startsWith(matrix.os, 'windows')
432+
uses: nick-invision/retry@v2
433+
with:
434+
timeout_minutes: 4
435+
max_attempts: 3
436+
shell: bash
437+
command: choco install patch --yes --nocolor
427438

428439
# Run the build in the host OS default shell since Windows can't handle long path names in bash.
429440
- name: Build desktop SDK

0 commit comments

Comments
 (0)