forked from such-gitea/wownero-lws
Update .gitea/workflows/build.yaml
This commit is contained in:
@@ -114,15 +114,17 @@ jobs:
|
|||||||
git config --global url."https://github.com/".insteadOf "git@github.com:"
|
git config --global url."https://github.com/".insteadOf "git@github.com:"
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
# --- 1. CLEANUP ---
|
# --- 1. CLEANUP (Critical) ---
|
||||||
- name: Nuke Old Boost Cache
|
- name: Nuke Old Boost Cache
|
||||||
run: |
|
run: |
|
||||||
echo "Clearing cache..."
|
# Delete everything related to Boost to ensure a clean slate
|
||||||
rm -rf external/monero/contrib/depends/work/build/x86_64-w64-mingw32/boost
|
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
|
rm -rf external/monero/contrib/depends/built/x86_64-w64-mingw32/boost
|
||||||
rm -rf external/monero/contrib/depends/work/download/boost*
|
rm -rf external/monero/contrib/depends/work/download/boost*
|
||||||
|
# Also nuke the staging area where the "directory" patch might be hiding
|
||||||
|
rm -rf external/monero/contrib/depends/work/stage/x86_64-w64-mingw32/boost
|
||||||
|
|
||||||
# --- 2. UPGRADE BOOST (The "Clean Slate" Fix) ---
|
# --- 2. UPGRADE BOOST (The "Empty List" Fix) ---
|
||||||
- name: Upgrade Boost Version to 1.80.0
|
- name: Upgrade Boost Version to 1.80.0
|
||||||
run: |
|
run: |
|
||||||
echo "Forcing depends to use Boost 1.80.0..."
|
echo "Forcing depends to use Boost 1.80.0..."
|
||||||
@@ -136,20 +138,21 @@ jobs:
|
|||||||
# 2. Add Context/Coroutine libraries
|
# 2. Add Context/Coroutine libraries
|
||||||
sed -i 's/chrono,/chrono,context,coroutine,/g' $BOOST_MK
|
sed -i 's/chrono,/chrono,context,coroutine,/g' $BOOST_MK
|
||||||
|
|
||||||
# 3. ERASE PATCH NAME (Target the filename directly)
|
# 3. DISABLE PATCHES (The Fix)
|
||||||
sed -i 's/fix_aroptions.patch//g' $BOOST_MK
|
# A. Delete any existing lines defining patches
|
||||||
|
sed -i '/_patches/d' $BOOST_MK
|
||||||
|
|
||||||
# 4. MOCK THE FILE (Safety Net)
|
# B. Append an empty definition to the end to be absolutely sure
|
||||||
# CRITICAL FIX: Remove the accidental directory first!
|
echo "package_patches=" >> $BOOST_MK
|
||||||
rm -rf external/monero/contrib/depends/packages/boost/fix_aroptions.patch
|
echo "$(package)_patches=" >> $BOOST_MK
|
||||||
|
|
||||||
# Now create the directory and the empty file correctly
|
|
||||||
mkdir -p external/monero/contrib/depends/packages/boost
|
|
||||||
touch external/monero/contrib/depends/packages/boost/fix_aroptions.patch
|
|
||||||
|
|
||||||
# Debug: Verify it is a file now
|
# 4. REMOVE THE PHYSICAL FILE
|
||||||
echo "--- Patch file status (Should be -rw-r--r--) ---"
|
# We delete the patch file so the build system can't mistake a directory for it
|
||||||
ls -l external/monero/contrib/depends/packages/boost/fix_aroptions.patch
|
rm -f external/monero/contrib/depends/packages/boost/fix_aroptions.patch
|
||||||
|
|
||||||
|
# Debug: Check our work
|
||||||
|
echo "--- BOOST.MK CONTENT ---"
|
||||||
|
cat $BOOST_MK
|
||||||
|
|
||||||
# --- 3. BUILD DEPENDENCIES ---
|
# --- 3. BUILD DEPENDENCIES ---
|
||||||
- name: Build Windows Dependencies
|
- name: Build Windows Dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user