From 52446c5216b1d14a5e69d0390f3678d43b059693 Mon Sep 17 00:00:00 2001 From: such-gitea Date: Mon, 5 Jan 2026 08:53:00 -0800 Subject: [PATCH] fix windows part 321 --- .gitea/workflows/build.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 697acd6..bca2fa8 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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)