From 1ffbfd60c0af33764997dcf247fe7fb1d8622d2d Mon Sep 17 00:00:00 2001 From: such-gitea Date: Tue, 20 Jan 2026 10:44:23 -0500 Subject: [PATCH] Update .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index a53d255..40bde9b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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