Update .gitea/workflows/build.yaml
Some checks failed
Build Wownero LWS (Systematic Repair) / linux-native (push) Failing after 57s
Build Wownero LWS (Systematic Repair) / linux-cross (riscv64, /usr/riscv64-linux-gnu, riscv64-linux-gnu) (push) Has been cancelled
Build Wownero LWS (Systematic Repair) / windows (push) Has been cancelled
Build Wownero LWS (Systematic Repair) / macos (arm64, macos-arm64, aarch64-apple-darwin11) (push) Has been cancelled
Build Wownero LWS (Systematic Repair) / macos (x86_64, macos-x64, x86_64-apple-darwin11) (push) Has been cancelled
Build Wownero LWS (Systematic Repair) / linux-cross (aarch64, /usr/aarch64-linux-gnu, aarch64-linux-gnu) (push) Has been cancelled

This commit is contained in:
2026-02-03 14:58:59 -05:00
parent 830508cfc7
commit d025e73bbc

View File

@@ -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 <ctime>\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 <boost/asio/windows/stream_handle.hpp>\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 \