fix windows build 54321
Some checks failed
Build Wownero LWS / build-macos (push) Successful in 1m31s
Build Wownero LWS / build-linux (push) Successful in 2m12s
Build Wownero LWS / build-windows (push) Failing after 5m58s

This commit is contained in:
2026-01-05 10:14:51 -08:00
parent a341e367d3
commit 72eb47af9c

View File

@@ -118,25 +118,27 @@ jobs:
- name: Patch Boost Dependency Options
run: |
echo "Patching boost.mk to include context and coroutine..."
# Fix: Target the comma-separated list directly.
sed -i 's/chrono,/chrono,context,coroutine,/g' external/monero/contrib/depends/packages/boost.mk
# --- 2. BUILD DEPENDENCIES (The Long Wait) ---
# --- 2. BUILD DEPENDENCIES ---
- name: Build Windows Dependencies
run: |
cd external/monero/contrib/depends
make HOST=x86_64-w64-mingw32 -j$(nproc)
# --- 3. PATCH APP CODE (Boost Ver + Missing Headers) ---
# --- 3. PATCH APP CODE (Boost Ver + Missing Headers + Downgrades) ---
- name: Patch App Source Code
run: |
echo "Downgrading Boost requirement from 1.70 to 1.69..."
sed -i 's/find_package(Boost 1.70/find_package(Boost 1.69/g' CMakeLists.txt
echo "Fixing missing <cstdint> include for GCC 13..."
# We look for '#include <list>' and append '#include <cstdint>' after it
sed -i 's/#include <list>/#include <list>\n#include <cstdint>/' external/monero/contrib/epee/include/net/http_base.h
echo "Downgrading C++ code to match Boost 1.69 API..."
sed -i 's/self.buffer.clear()/self.buffer.consume(self.buffer.size())/g' src/net/http/client.cpp
sed -i 's/self.timer.get_executor()/self.timer.get_io_service()/g' src/net/http/client.cpp
# --- 4. COMPILE APP ---
- name: Build Windows (Cross-Compile)
run: |