diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f750d07..697acd6 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -114,27 +114,30 @@ jobs: git config --global url."https://github.com/".insteadOf "git@github.com:" git submodule update --init --recursive - - name: Patch Boost Requirement + # --- NEW STEP: Enable Context & Coroutine in Boost --- + - name: Patch Boost Dependency Options run: | - echo "Downgrading Boost requirement from 1.70 to 1.69..." - # Fix the root CMakeLists.txt which asks for 1.70 - sed -i 's/find_package(Boost 1.70/find_package(Boost 1.69/g' CMakeLists.txt + 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 + # ----------------------------------------------------- - name: Build Windows Dependencies run: | - # 1. Enter the submodule directory where the build system lives + # This will now rebuild Boost with the new libraries (might take 10-15 mins) cd external/monero/contrib/depends - - # 2. Build the dependencies for Windows 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) run: | mkdir build && cd build - - # 3. Point CMake to the toolchain file we just built (UPDATED PATH HERE) cmake .. -DCMAKE_TOOLCHAIN_FILE=../external/monero/contrib/depends/x86_64-w64-mingw32/share/toolchain.cmake -DCMAKE_BUILD_TYPE=Release - make -j$(nproc) - name: Package Windows