forked from such-gitea/wownero-lws
Update .gitea/workflows/build.yaml
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user