From d025e73bbc2351d1015db0c400be26bf9ae4c819 Mon Sep 17 00:00:00 2001 From: such-gitea Date: Tue, 3 Feb 2026 14:58:59 -0500 Subject: [PATCH] Update .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 766280a..b13bd5e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,4 +1,4 @@ -name: Build Wownero LWS (Systematic Fix) +name: Build Wownero LWS (Systematic Repair) on: push: branches: [ master, main ] @@ -7,6 +7,7 @@ on: env: NODE_TLS_REJECT_UNAUTHORIZED: '0' + # Pointing to your verified "God Build" of Core CORE_TAG: 'v0.11.4.1' jobs: @@ -21,8 +22,10 @@ jobs: steps: - name: Fix DNS run: echo "192.168.88.230 git.such.software" >> /etc/hosts + - name: Install Static System Libs run: apt-get update && apt-get install -y libc6-dev + - name: Checkout env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -47,22 +50,16 @@ jobs: mkdir -p /opt/wownero-sdk tar -xf sdk.tar.gz -C /opt/wownero-sdk - - name: Normalize SDK (Debug & Fix) + - name: Normalize SDK (Targeted Fix) run: | cd /opt/wownero-sdk/lib - # Force copy zstd to standard name - cp -v libzstd.a libzstd_static.a || true - # If libzstd.a doesn't exist, try to find a variant - if [ ! -f libzstd.a ]; then - find . -name "libzstd*.a" -exec cp -v {} libzstd.a \; - fi - - # Same for HIDAPI and Zlib - find . -name "libhidapi*.a" -exec cp -v {} libhidapi.a \; || true + # Brute force copy to ensure the exact filenames CMake expects exist + find . -name "libzstd*.a" -exec cp -v {} libzstd.a \; || true find . -name "libz*.a" -exec cp -v {} libz.a \; || true + find . -name "libhidapi*.a" -exec cp -v {} libhidapi.a \; || true - echo "=== SDK LIBRARY DEBUG LIST ===" - ls -lh *.a + # Debug: Prove they exist + ls -l libzstd.a libz.a - name: Install Modern CMake run: | @@ -273,11 +270,10 @@ jobs: HEADER="external/monero/contrib/epee/include/storages/portable_storage_val_converters.h" sed -i '1i #include \n#ifdef _WIN32\nchar* strptime(const char* s, const char* f, struct tm* tm) { return 0; }\n#endif' $HEADER - # FIX ZMQ ASYNC FOR WINDOWS - # We need to inject the proper Windows header for 'stream_handle' + # FIX ZMQ ASYNC FOR WINDOWS (CRITICAL FIX) + # 1. Replace type sed -i 's/boost::asio::posix::stream_descriptor/boost::asio::windows::stream_handle/g' src/net/zmq_async.h - - # Inject the header at the top of the file + # 2. Inject missing header so the type is defined sed -i '1i #ifdef _WIN32\n#include \n#endif' src/net/zmq_async.h - name: Download SDK @@ -404,6 +400,7 @@ jobs: run: | perl -pi -e 's/handler_loop\s+final/handler_loop/g' src/rest_server.cpp perl -pi -e 's/find_library\(ICU/# find_library(ICU/g' external/monero/CMakeLists.txt + # Nuke locale requirement for Mac perl -pi -e 's/locale//g' external/monero/CMakeLists.txt - name: Install CMake @@ -421,7 +418,7 @@ jobs: mkdir build && cd build SDK_DIR="$(pwd)/../wownero-sdk" - # CRITICAL: We set Boost_USE_STATIC_RUNTIME=OFF because our Mac artifacts use shared runtime + # CRITICAL: Boost_USE_STATIC_RUNTIME=OFF for Mac (using system runtime) cmake .. -DCMAKE_BUILD_TYPE=Release \ -DBUILD_STATIC=ON \ -DBoost_USE_STATIC_RUNTIME=OFF \