forked from such-gitea/wownero-lws
Update .gitea/workflows/build.yaml
Some checks failed
Build Wownero LWS (Windows Admin Rescue) / macos (arm64, macos-arm64, aarch64-apple-darwin11) (push) Failing after 5s
Build Wownero LWS (Windows Admin Rescue) / macos (x86_64, macos-x64, x86_64-apple-darwin11) (push) Failing after 4s
Build Wownero LWS (Windows Admin Rescue) / linux-native (push) Successful in 2m12s
Build Wownero LWS (Windows Admin Rescue) / linux-cross (aarch64, /usr/aarch64-linux-gnu, aarch64-linux-gnu) (push) Successful in 2m7s
Build Wownero LWS (Windows Admin Rescue) / linux-cross (riscv64, /usr/riscv64-linux-gnu, riscv64-linux-gnu) (push) Successful in 2m7s
Build Wownero LWS (Windows Admin Rescue) / windows (push) Failing after 1m45s
Some checks failed
Build Wownero LWS (Windows Admin Rescue) / macos (arm64, macos-arm64, aarch64-apple-darwin11) (push) Failing after 5s
Build Wownero LWS (Windows Admin Rescue) / macos (x86_64, macos-x64, x86_64-apple-darwin11) (push) Failing after 4s
Build Wownero LWS (Windows Admin Rescue) / linux-native (push) Successful in 2m12s
Build Wownero LWS (Windows Admin Rescue) / linux-cross (aarch64, /usr/aarch64-linux-gnu, aarch64-linux-gnu) (push) Successful in 2m7s
Build Wownero LWS (Windows Admin Rescue) / linux-cross (riscv64, /usr/riscv64-linux-gnu, riscv64-linux-gnu) (push) Successful in 2m7s
Build Wownero LWS (Windows Admin Rescue) / windows (push) Failing after 1m45s
This commit is contained in:
@@ -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 <ctime>\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 <boost/system/error_code.hpp>' >> src/net/zmq_async.h
|
||||
echo '#include <memory>' >> src/net/zmq_async.h
|
||||
echo 'namespace net { namespace zmq { struct async_client { struct mock { void cancel(boost::system::error_code = {}) {} }; std::unique_ptr<mock> 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.
|
||||
# Upload disabled to avoid network crash.
|
||||
Reference in New Issue
Block a user