diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 6872255..d1c4dcc 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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 include for GCC 13..." + # We look for '#include ' and append '#include ' after it + sed -i 's/#include /#include \n#include /' external/monero/contrib/epee/include/net/http_base.h + # --- 4. COMPILE APP --- - name: Build Windows (Cross-Compile) run: | mkdir build && cd build