forked from github-such-software/hash-wallet
Windows CI: pull MinGW runtime DLLs from choco's mingw install #33
11
.github/workflows/build-windows.yml
vendored
11
.github/workflows/build-windows.yml
vendored
@@ -182,9 +182,10 @@ jobs:
|
|||||||
# MinGW-w64 distribution, which ships the same x86_64-w64-mingw32
|
# MinGW-w64 distribution, which ships the same x86_64-w64-mingw32
|
||||||
# ABI used to build the wallet libs.
|
# ABI used to build the wallet libs.
|
||||||
RUNTIME_PATHS=(
|
RUNTIME_PATHS=(
|
||||||
"$SRC" # monero_c bundle (preferred if present)
|
"$SRC" # monero_c bundle
|
||||||
"/c/Program Files/Git/mingw64/bin" # Git for Windows / Git Bash
|
"/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin" # choco install -y mingw
|
||||||
"/mingw64/bin" # MSYS2 mingw64 fallback
|
"/c/Program Files/Git/mingw64/bin" # Git for Windows
|
||||||
|
"/mingw64/bin" # MSYS2 fallback
|
||||||
)
|
)
|
||||||
for runtime in libssp-0.dll libwinpthread-1.dll; do
|
for runtime in libssp-0.dll libwinpthread-1.dll; do
|
||||||
src=""
|
src=""
|
||||||
@@ -197,6 +198,10 @@ jobs:
|
|||||||
if [[ -z "$src" ]]; then
|
if [[ -z "$src" ]]; then
|
||||||
echo "FATAL: $runtime not found in any of:"
|
echo "FATAL: $runtime not found in any of:"
|
||||||
printf ' %s\n' "${RUNTIME_PATHS[@]}"
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
cp -v "$src" "$MONERO_DST/x86_64-w64-mingw32_${runtime}"
|
cp -v "$src" "$MONERO_DST/x86_64-w64-mingw32_${runtime}"
|
||||||
|
|||||||
Reference in New Issue
Block a user