fix windows part 321
Some checks failed
Build Wownero LWS / build-macos (push) Successful in 1m28s
Build Wownero LWS / build-linux (push) Successful in 2m17s
Build Wownero LWS / build-windows (push) Failing after 4m22s

This commit is contained in:
2026-01-05 08:53:00 -08:00
parent d80a33027a
commit 52446c5216

View File

@@ -114,24 +114,29 @@ jobs:
git config --global url."https://github.com/".insteadOf "git@github.com:"
git submodule update --init --recursive
# --- NEW STEP: Enable Context & Coroutine in Boost ---
# --- CRITICAL FIX: Delete old Boost so it rebuilds! ---
- 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
# ------------------------------------------------------
- name: Patch Boost Dependency Options
run: |
echo "Patching boost.mk to include context and coroutine..."
# We search for '--with-thread' (which is always there) and append the missing libs
sed -i 's/--with-thread/--with-thread --with-context --with-coroutine/g' external/monero/contrib/depends/packages/boost.mk
# -----------------------------------------------------
# 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
- name: Build Windows Dependencies
run: |
# This will now rebuild Boost with the new libraries (might take 10-15 mins)
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)
run: |
echo "Downgrading Boost requirement from 1.70 to 1.69..."
# This keeps your existing fix for the version number
sed -i 's/find_package(Boost 1.70/find_package(Boost 1.69/g' CMakeLists.txt
- name: Build Windows (Cross-Compile)