Update .gitea/workflows/build.yaml
Some checks failed
Build Wownero LWS / build-cross (tar.gz, , linux-arm64, aarch64-linux-gnu) (push) Failing after 50s
Build Wownero LWS / build-cross (tar.gz, , linux-x64, x86_64-linux-gnu) (push) Failing after 47s
Build Wownero LWS / build-macos (push) Successful in 2m2s
Build Wownero LWS / build-cross (zip, .exe, windows-x64, x86_64-w64-mingw32) (push) Failing after 52s
Build Wownero LWS / release (push) Has been skipped

This commit is contained in:
2026-01-20 10:44:23 -05:00
parent 4b5ea65549
commit 1ffbfd60c0

View File

@@ -47,7 +47,7 @@ jobs:
rm -rf *
git config --global --add safe.directory '*'
# Redirect Codeberg to LAN Mirror
# Global Redirection
git config --global url."http://oauth2:${GITHUB_TOKEN}@git.such.software:3000/Builds/wownero.git".insteadOf "https://codeberg.org/wownero/wownero.git"
git config --global url."http://oauth2:${GITHUB_TOKEN}@git.such.software:3000/Builds/RandomWOW.git".insteadOf "https://codeberg.org/wownero/RandomWOW"
@@ -62,11 +62,8 @@ jobs:
"https://git.such.software/Builds/wownero/releases/download/${{ env.CORE_VERSION }}/wownero-sdk-${{ matrix.platform }}.tar.gz"
tar -xf sdk.tar.gz -C wownero-sdk
# CRITICAL FIX: Ensure permissions are correct so CMake can read version.hpp
chmod -R 755 wownero-sdk
# DEBUG: Check if version.hpp is readable now
ls -la wownero-sdk/include/boost/version.hpp || echo "File missing!"
# AGGRESSIVE PERMISSIONS FIX
chmod -R 777 wownero-sdk
- name: Build LWS
run: |
@@ -76,6 +73,7 @@ jobs:
INC="$SDK_DIR/include"
LIB="$SDK_DIR/lib"
# Export ENV variables for Boost
export BOOST_ROOT="$SDK_DIR"
export BOOST_INCLUDEDIR="$INC"
export BOOST_LIBRARYDIR="$LIB"
@@ -88,15 +86,20 @@ jobs:
PLATFORM_FLAGS=""
fi
# CRITICAL: Added Boost_INCLUDE_DIR to command line
cmake .. \
$PLATFORM_FLAGS \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="$SDK_DIR" \
-DMONERO_SOURCE_DIR="$INC/wownero-src" \
-DMONERO_BUILD_DIR="$LIB" \
\
-DBOOST_ROOT="$SDK_DIR" \
-DBoost_INCLUDE_DIR="$INC" \
-DBoost_NO_SYSTEM_PATHS=ON \
-DBoost_NO_BOOST_CMAKE=ON \
-DBoost_ADDITIONAL_VERSIONS="1.73.0" \
\
-DBUILD_STATIC=ON \
-DOPENSSL_ROOT_DIR="$SDK_DIR" \
-DOPENSSL_USE_STATIC_LIBS=TRUE \
@@ -138,7 +141,7 @@ jobs:
path: release/wownero-lws-${{ matrix.platform }}.${{ matrix.archive }}
# ------------------------------------------------------------------
# 2. MACOS (Dynamic Build + 'rt' Patch)
# 2. MACOS (Proven Working!)
# ------------------------------------------------------------------
build-macos:
runs-on: macos-latest
@@ -150,15 +153,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
rm -rf *
git config --global url."http://oauth2:${GITHUB_TOKEN}@localhost:3000/Builds/wownero.git".insteadOf "https://codeberg.org/wownero/wownero.git"
git config --global url."http://oauth2:${GITHUB_TOKEN}@localhost:3000/Builds/RandomWOW.git".insteadOf "https://codeberg.org/wownero/RandomWOW"
git clone http://oauth2:$GITHUB_TOKEN@localhost:3000/${{ github.repository }}.git .
git submodule update --init --recursive
# CRITICAL FIX: Use PERL to strip 'rt' library from ALL CMakeLists
# This fixes "ld: library 'rt' not found"
# Patch RT lib out
find . -name "CMakeLists.txt" -print0 | xargs -0 perl -pi -e 's/\brt\b//g'
- name: Install Dependencies
@@ -176,7 +176,6 @@ jobs:
- name: Build LWS
run: |
mkdir build && cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DMONERO_SOURCE_DIR=$(pwd)/../wownero-sdk/include/wownero-src \
@@ -184,7 +183,6 @@ jobs:
-DWARNINGS_AS_ERRORS=OFF \
-DCMAKE_CXX_FLAGS="-Wno-error -Wno-deprecated-declarations" \
-DBUILD_STATIC=OFF
make -j$(sysctl -n hw.ncpu)
- name: Package Release