fix windows build part 7777
Some checks failed
Build Wownero LWS / build-macos (push) Successful in 1m47s
Build Wownero LWS / build-linux (push) Successful in 1m54s
Build Wownero LWS / build-windows (push) Failing after 5m33s

This commit is contained in:
2026-01-05 09:15:03 -08:00
parent 52446c5216
commit 02830e8e0b

View File

@@ -114,24 +114,33 @@ jobs:
git config --global url."https://github.com/".insteadOf "git@github.com:"
git submodule update --init --recursive
# --- CRITICAL FIX: Delete old Boost so it rebuilds! ---
# --- 1. CLEANUP: Force Rebuild ---
- name: Nuke Old Boost Cache
run: |
echo "Deleting cached Boost build..."
rm -rf external/monero/contrib/depends/work/build/x86_64-w64-mingw32/boost
rm -rf external/monero/contrib/depends/built/x86_64-w64-mingw32/boost
# ------------------------------------------------------
# --- 2. PATCH: Insert context,coroutine into the library list ---
- name: Patch Boost Dependency Options
run: |
echo "Patching boost.mk to include context and coroutine..."
# We hook onto '--with-chrono' which we KNOW exists in the file
sed -i 's/--with-chrono/--with-chrono --with-context --with-coroutine/g' external/monero/contrib/depends/packages/boost.mk
# Debug: Print the file before patching to be sure
echo "--- Content Before ---"
grep "chrono" external/monero/contrib/depends/packages/boost.mk || echo "String not found!"
# FIX: Target the comma-separated list directly.
# We replace "chrono," with "chrono,context,coroutine,"
sed -i 's/chrono,/chrono,context,coroutine,/g' external/monero/contrib/depends/packages/boost.mk
# Debug: Print after to verify
echo "--- Content After ---"
grep "chrono" external/monero/contrib/depends/packages/boost.mk
- name: Build Windows Dependencies
run: |
cd external/monero/contrib/depends
# This will now DEFINITELY rebuild Boost (expect 15 mins)
make HOST=x86_64-w64-mingw32 -j$(nproc)
- name: Patch Boost Requirement (App Side)