diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index bca2fa8..6872255 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -114,24 +114,33 @@ jobs: git config --global url."https://github.com/".insteadOf "git@github.com:" git submodule update --init --recursive - # --- CRITICAL FIX: Delete old Boost so it rebuilds! --- + # --- 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 --- - name: Patch Boost Dependency Options run: | echo "Patching boost.mk to include context and coroutine..." - # 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 + + # 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," + 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 - name: Build Windows Dependencies run: | 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)