update windows build 12345
Some checks failed
Build Wownero LWS / build-macos (push) Successful in 1m30s
Build Wownero LWS / build-linux (push) Successful in 2m11s
Build Wownero LWS / build-windows (push) Failing after 5m43s

This commit is contained in:
2026-01-05 09:27:14 -08:00
parent 02830e8e0b
commit a341e367d3

View File

@@ -114,40 +114,30 @@ jobs:
git config --global url."https://github.com/".insteadOf "git@github.com:"
git submodule update --init --recursive
# --- 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 ---
# --- 1. PATCH DEPENDENCIES (Boost) ---
- name: Patch Boost Dependency Options
run: |
echo "Patching boost.mk to include context and coroutine..."
# 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,"
# Fix: Target the comma-separated list directly.
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
# --- 2. BUILD DEPENDENCIES (The Long Wait) ---
- name: Build Windows Dependencies
run: |
cd external/monero/contrib/depends
make HOST=x86_64-w64-mingw32 -j$(nproc)
- name: Patch Boost Requirement (App Side)
# --- 3. PATCH APP CODE (Boost Ver + Missing Headers) ---
- 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
# --- 4. COMPILE APP ---
- name: Build Windows (Cross-Compile)
run: |
mkdir build && cd build