forked from such-gitea/wownero-lws
fix windows build 54321
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user