Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/actions/build-suews/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,14 @@ runs:
brew install gfortran &&
brew unlink gfortran &&
brew link gfortran
# Windows MSYS2/pacman setup with two workarounds:
# 1. Core package updates (pacman, msys2-runtime) terminate bash.exe via taskkill - use Windows-level
# error suppression (|| ver >nul) since bash can't execute || true when forcibly killed
# 2. Mirror timeouts cause "Operation too slow" errors - use --disable-download-timeout + retry
CIBW_BEFORE_ALL_WINDOWS: >
C:\msys64\usr\bin\bash.exe -lc "pacman -Syu --noconfirm" &&
C:\msys64\usr\bin\bash.exe -lc "pacman -S --needed --noconfirm mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-gcc-fortran mingw-w64-ucrt-x86_64-binutils mingw-w64-ucrt-x86_64-make mingw-w64-ucrt-x86_64-openblas"
(C:\msys64\usr\bin\bash.exe -lc "pacman -Syu --noconfirm --disable-download-timeout" || ver >nul) &&
C:\msys64\usr\bin\bash.exe -lc "pacman -Syu --noconfirm --disable-download-timeout" &&
C:\msys64\usr\bin\bash.exe -lc "for i in 1 2 3; do pacman -S --needed --noconfirm --disable-download-timeout mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-gcc-fortran mingw-w64-ucrt-x86_64-binutils mingw-w64-ucrt-x86_64-make mingw-w64-ucrt-x86_64-openblas && break || { echo Retry $i/3 && sleep 15; }; done"
# Platform-specific: Windows compiler and toolchain settings
CIBW_ENVIRONMENT_WINDOWS: >
PATH="C:\\msys64\\ucrt64\\bin;$PATH"
Expand Down
Loading