Skip to content

Commit 1d7dd18

Browse files
xtqqczzesylvestre
authored andcommitted
ci: fix build_makefile-windows-cygwin job
1 parent 5fd1c79 commit 1d7dd18

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

‎.github/workflows/make.yml‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,25 @@ jobs:
301301
# msys2-runtime must be upgraded in a separate bash session before the build.
302302
# Upgrading it mid-session changes the shared memory layout (60344 -> 59320),
303303
# which causes subsequent fork() calls to fail with EAGAIN (exit code 254).
304+
# The update may also terminate the current shell, so continue-on-error
305+
# allows the workflow to proceed with a fresh session.
306+
shell: 'C:\msys64\usr\bin\bash.exe --login -eo pipefail {0}'
307+
continue-on-error: true
308+
run: |
309+
pacman -Syu --noconfirm
310+
- name: Install build dependencies
304311
shell: 'C:\msys64\usr\bin\bash.exe --login -eo pipefail {0}'
305312
# test Cygwin & MinGW(UCRT) instead of pre-installed Rust.
306313
run: |
307-
pacman -Sy --noconfirm --needed base-devel libopenssl make openssl-devel pkgconf rust \
308-
mingw-w64-ucrt-x86_64-openssl mingw-w64-ucrt-x86_64-rust
314+
pacman -Su --noconfirm --needed \
315+
base-devel \
316+
libopenssl \
317+
make \
318+
mingw-w64-ucrt-x86_64-openssl \
319+
mingw-w64-ucrt-x86_64-rust \
320+
openssl-devel \
321+
pkgconf \
322+
rust
309323
env:
310324
CHERE_INVOKING: 1
311325
- name: "`(x86_64-pc-cygwin) make install PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n`"

0 commit comments

Comments
 (0)