Update .gitea/workflows/build.yaml
Some checks failed
Build Wownero LWS / build-linux (push) Successful in 7m11s
Build Wownero LWS / build-macos (push) Successful in 8m34s
Build Wownero LWS / build-windows (push) Failing after 7m20s

This commit is contained in:
2026-01-09 08:31:43 -08:00
parent 7bb87accbb
commit 2b23667d39

View File

@@ -109,8 +109,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# WARNING: 'rm -rf *' deletes the cached dependencies every run.
# If builds take too long, consider removing this line later.
echo "Cleaning workspace..."
rm -rf *
@@ -130,19 +128,23 @@ jobs:
/bin/bash -c "
set -e
# --- FIX 1: Trust the repo (Fixes 'dubious ownership' error) ---
# --- FIX 1: Trust the repo (Fixes 'dubious ownership') ---
git config --global --add safe.directory '*'
# --- FIX 2: Relax Boost Requirement ---
# The 'depends' system built Boost 1.69. The CMake file wants 1.70.
# We change the requirement to 1.69 to match what we have.
# --- FIX 2: Relax Boost Requirement (Allow 1.69) ---
echo 'Patching CMakeLists.txt to accept Boost 1.69...'
sed -i 's/1.70/1.69/g' CMakeLists.txt || true
sed -i 's/1\.70/1\.69/g' CMakeLists.txt || true
# --- FIX 3: Enable Missing Boost Libraries (Context & Coroutine) ---
# We find the list of libraries in boost.mk and append the ones we need.
# We target 'filesystem' (which is always there) and add our extras after it.
echo 'Patching boost.mk to build context and coroutine...'
sed -i 's/filesystem/filesystem context coroutine/g' external/monero/contrib/depends/packages/boost.mk
# 1. Build Dependencies
# Since these are already built in your folder, this step will be instant!
echo 'Checking Dependencies...'
# This will now REBUILD Boost because we changed the recipe (Fix 3).
echo 'Building Dependencies...'
cd external/monero/contrib/depends
make HOST=x86_64-w64-mingw32 -j$(nproc)