Windows CI: pull MinGW runtime DLLs from choco's mingw install #33

Merged
such-gitea merged 1 commits from github-such-software/hash-wallet:dev into dev 2026-05-20 19:04:48 -04:00

View File

@@ -182,9 +182,10 @@ jobs:
# MinGW-w64 distribution, which ships the same x86_64-w64-mingw32
# ABI used to build the wallet libs.
RUNTIME_PATHS=(
"$SRC" # monero_c bundle (preferred if present)
"/c/Program Files/Git/mingw64/bin" # Git for Windows / Git Bash
"/mingw64/bin" # MSYS2 mingw64 fallback
"$SRC" # monero_c bundle
"/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin" # choco install -y mingw
"/c/Program Files/Git/mingw64/bin" # Git for Windows
"/mingw64/bin" # MSYS2 fallback
)
for runtime in libssp-0.dll libwinpthread-1.dll; do
src=""
@@ -197,6 +198,10 @@ jobs:
if [[ -z "$src" ]]; then
echo "FATAL: $runtime not found in any of:"
printf ' %s\n' "${RUNTIME_PATHS[@]}"
for d in "${RUNTIME_PATHS[@]}"; do
echo "--- contents of $d (if exists) ---"
ls "$d" 2>/dev/null | head -20 || echo "(missing)"
done
exit 1
fi
cp -v "$src" "$MONERO_DST/x86_64-w64-mingw32_${runtime}"