forked from such-gitea/wownero-lws
Update .gitea/workflows/build.yaml
This commit is contained in:
@@ -114,20 +114,22 @@ 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 (Critical) ---
|
# --- 1. CLEANUP (The Fix for "Is a directory") ---
|
||||||
- name: Nuke Old Boost Cache
|
- name: Clean Environment
|
||||||
run: |
|
run: |
|
||||||
# Delete everything related to Boost to ensure a clean slate
|
echo "Nuking cache and old patch artifacts..."
|
||||||
|
# Delete build 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*
|
||||||
# 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 "Empty List" Fix) ---
|
# CRITICAL: Delete the 'packages/boost' folder to remove any directories masking as files
|
||||||
- name: Upgrade Boost Version to 1.80.0
|
rm -rf external/monero/contrib/depends/packages/boost
|
||||||
|
|
||||||
|
# --- 2. CONFIGURE BOOST 1.80 ---
|
||||||
|
- name: Configure Boost 1.80.0
|
||||||
run: |
|
run: |
|
||||||
echo "Forcing depends to use Boost 1.80.0..."
|
echo "Updating Boost version..."
|
||||||
BOOST_MK="external/monero/contrib/depends/packages/boost.mk"
|
BOOST_MK="external/monero/contrib/depends/packages/boost.mk"
|
||||||
|
|
||||||
# 1. Update Version and Hash
|
# 1. Update Version and Hash
|
||||||
@@ -138,21 +140,13 @@ 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. DISABLE PATCHES (The Fix)
|
# 3. CREATE DUMMY PATCH (The Fix for "No such file")
|
||||||
# A. Delete any existing lines defining patches
|
# We do NOT delete the line from the makefile. We just give it the file it wants.
|
||||||
sed -i '/_patches/d' $BOOST_MK
|
mkdir -p external/monero/contrib/depends/packages/boost
|
||||||
|
touch external/monero/contrib/depends/packages/boost/fix_aroptions.patch
|
||||||
|
|
||||||
# B. Append an empty definition to the end to be absolutely sure
|
# Debug: Prove it is a file
|
||||||
echo "package_patches=" >> $BOOST_MK
|
ls -l external/monero/contrib/depends/packages/boost/fix_aroptions.patch
|
||||||
echo "$(package)_patches=" >> $BOOST_MK
|
|
||||||
|
|
||||||
# 4. REMOVE THE PHYSICAL FILE
|
|
||||||
# We delete the patch file so the build system can't mistake a directory for it
|
|
||||||
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