forked from such-gitea/wownero-lws
Update .gitea/workflows/build.yaml
This commit is contained in:
@@ -117,11 +117,12 @@ jobs:
|
|||||||
# --- 1. CLEANUP ---
|
# --- 1. CLEANUP ---
|
||||||
- name: Nuke Old Boost Cache
|
- name: Nuke Old Boost Cache
|
||||||
run: |
|
run: |
|
||||||
|
echo "Clearing cache..."
|
||||||
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*
|
||||||
|
|
||||||
# --- 2. UPGRADE BOOST (The "Give It What It Wants" Fix) ---
|
# --- 2. UPGRADE BOOST (The "Erase & Mock" 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..."
|
||||||
@@ -135,21 +136,20 @@ 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. OVERRIDE PATCHES (Force variable to be empty at end of file)
|
# 3. ERASE PATCH NAME (Target the filename directly)
|
||||||
echo "" >> $BOOST_MK
|
# This leaves the variable empty: patches=
|
||||||
echo "$(package)_patches=" >> $BOOST_MK
|
sed -i 's/fix_aroptions.patch//g' $BOOST_MK
|
||||||
echo "boost_patches=" >> $BOOST_MK
|
|
||||||
|
# 4. MOCK THE FILE (Safety Net)
|
||||||
# 4. FAKE FILE (Just in case logic fails, provide a blank patch)
|
# We insure the directory exists and create a 0-byte patch file.
|
||||||
# We force create the directory first so the 'echo' command doesn't fail
|
|
||||||
mkdir -p external/monero/contrib/depends/packages/boost
|
mkdir -p external/monero/contrib/depends/packages/boost
|
||||||
echo "" > external/monero/contrib/depends/packages/boost/fix_aroptions.patch
|
touch external/monero/contrib/depends/packages/boost/fix_aroptions.patch
|
||||||
|
|
||||||
# Debug: Show us what we did
|
# Debug: Verify changes
|
||||||
echo "--- Modified Boost.mk ---"
|
echo "--- Content of boost.mk ---"
|
||||||
cat $BOOST_MK
|
cat $BOOST_MK
|
||||||
echo "--- Created Fake Patch ---"
|
echo "--- Patch file status ---"
|
||||||
ls -la external/monero/contrib/depends/packages/boost/fix_aroptions.patch
|
ls -l external/monero/contrib/depends/packages/boost/fix_aroptions.patch
|
||||||
|
|
||||||
# --- 3. BUILD DEPENDENCIES ---
|
# --- 3. BUILD DEPENDENCIES ---
|
||||||
- name: Build Windows Dependencies
|
- name: Build Windows Dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user