fix windows part 67
Some checks failed
Build Wownero LWS / build-macos (push) Successful in 1m54s
Build Wownero LWS / build-linux (push) Successful in 2m2s
Build Wownero LWS / build-windows (push) Failing after 4m25s

This commit is contained in:
2026-01-05 08:37:18 -08:00
parent 20512b8df4
commit d80a33027a

View File

@@ -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