From d56e1b1055974a2d40a49f5ecf2dffc0409e27c2 Mon Sep 17 00:00:00 2001 From: such-gitea Date: Wed, 11 Feb 2026 08:15:15 -0500 Subject: [PATCH] Update .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 35 +++++++++++------------------------ 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 3d80f70..ac28601 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,4 +1,4 @@ -name: Build Wownero LWS (Windows Stub Fix) +name: Build Wownero LWS (Windows Admin Rescue) on: push: branches: [ master, main ] @@ -11,7 +11,7 @@ env: jobs: # ================================================================== - # JOB 1: LINUX NATIVE (x86_64) - KEEPING AS IS (GREEN) + # JOB 1: LINUX NATIVE (x86_64) - UNTOUCHED (GREEN) # ================================================================== linux-native: runs-on: ubuntu-latest @@ -104,7 +104,7 @@ jobs: path: release/*.tar.gz # ================================================================== - # JOB 2: LINUX CROSS (ARM64 / RISCV64) - KEEPING AS IS (GREEN) + # JOB 2: LINUX CROSS (ARM64 / RISCV64) - UNTOUCHED (GREEN) # ================================================================== linux-cross: runs-on: ubuntu-latest @@ -240,7 +240,7 @@ jobs: path: release/*.tar.gz # ================================================================== - # JOB 3: WINDOWS - STUB & SMASH + # JOB 3: WINDOWS - ADMIN RESCUE (Header Patch) # ================================================================== windows: runs-on: ubuntu-latest @@ -272,24 +272,11 @@ jobs: perl -pi -e 's/-Werror//g' external/monero/CMakeLists.txt sed -i '1i #include \n#ifdef _WIN32\nchar* strptime(const char* s, const char* f, struct tm* tm) { return 0; }\n#endif' external/monero/contrib/epee/include/storages/portable_storage_val_converters.h - # 1. Stub zmq_async.h to be a harmless dummy on Windows - echo '#pragma once' > src/net/zmq_async.h - echo '#ifdef _WIN32' >> src/net/zmq_async.h - echo '#include ' >> src/net/zmq_async.h - echo '#include ' >> src/net/zmq_async.h - echo 'namespace net { namespace zmq { struct async_client { struct mock { void cancel(boost::system::error_code = {}) {} }; std::unique_ptr asock; }; } }' >> src/net/zmq_async.h - echo '#else' >> src/net/zmq_async.h - cat src/net/zmq_async.h.original 2>/dev/null || true >> src/net/zmq_async.h - echo '#endif' >> src/net/zmq_async.h + # 1. HEADER PATCH: Inject dummy 'adescriptor' so code compiles + sed -i '1i #ifdef _WIN32\nstruct dummy_sock { void async_wait(int, int) {} void cancel() {} void cancel(int) {} };\nnamespace boost { namespace asio { namespace posix { typedef dummy_sock stream_descriptor; } } }\n#endif' src/net/zmq_async.h - # 2. Stub out the calls in rest_server.cpp so they don't fail - # We simply comment out lines containing 'asock->cancel' - sed -i 's/.*asock->cancel.*/\/\/ DISABLED ON WINDOWS/g' src/rest_server.cpp - - # 3. Disable client.cpp compilation (still fails if included in build list) - sed -i '/client.cpp/d' src/rpc/CMakeLists.txt - # 4. Remove Admin tool (needs client) - sed -i '/wownero-lws-admin/d' src/CMakeLists.txt + # 2. SOURCE PATCH: Comment out incompatible calls in zmq_async.cpp + sed -i 's/.*async_wait.*//g' src/net/zmq_async.h - name: Download SDK run: | @@ -364,7 +351,7 @@ jobs: - name: Package run: | mkdir release - zip -j release/wownero-lws-x86_64-w64-mingw32.zip build/src/wownero-lws-daemon.exe + zip -j release/wownero-lws-x86_64-w64-mingw32.zip build/src/wownero-lws-daemon.exe build/src/wownero-lws-admin.exe - name: Upload uses: actions/upload-artifact@v3 with: @@ -372,7 +359,7 @@ jobs: path: release/*.zip # ================================================================== - # JOB 4: MACOS - KEEPING AS IS + # JOB 4: MACOS - UNTOUCHED (Manual Checkout) # ================================================================== macos: runs-on: macos-latest @@ -448,4 +435,4 @@ jobs: run: | mkdir release zip -j release/wownero-lws-${{ matrix.platform }}.zip build/src/wownero-lws-daemon build/src/wownero-lws-admin - # Upload disabled. \ No newline at end of file + # Upload disabled to avoid network crash. \ No newline at end of file