From 0afd7bce514f3948f122487d0fb5a0b07e714d7a Mon Sep 17 00:00:00 2001 From: such-gitea Date: Mon, 5 Jan 2026 08:07:16 -0800 Subject: [PATCH] fix cert issue and update windows build --- .gitea/workflows/build.yaml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 12a5490..b60553d 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -3,6 +3,11 @@ on: push: workflow_dispatch: +# --- GLOBAL FIX FOR SSL UPLOADS --- +env: + NODE_TLS_REJECT_UNAUTHORIZED: '0' +# ---------------------------------- + jobs: build-macos: runs-on: macos-latest @@ -46,7 +51,6 @@ jobs: - name: Package macOS run: | - # Zip all 3 binaries into one file cd build/src zip ../../wownero-lws-macos.zip wownero-lws-daemon wownero-lws-admin wownero-lws-client @@ -84,7 +88,6 @@ jobs: - name: Package Linux run: | cd build/src - # Create a zip containing all 3 tools zip ../../wownero-lws-linux.zip wownero-lws-daemon wownero-lws-admin wownero-lws-client - name: Upload Linux Artifact @@ -100,7 +103,7 @@ jobs: files: wownero-lws-linux.zip build-windows: - runs-on: windows-latest # Maps to 'linux-beast' + runs-on: windows-latest steps: - name: Manual Checkout (LAN) env: @@ -113,22 +116,24 @@ jobs: - name: Build Windows Dependencies run: | - # FIX: The depends folder is inside the submodule! + # 1. Enter the submodule directory where the build system lives cd external/monero/contrib/depends + + # 2. Build the dependencies for Windows make HOST=x86_64-w64-mingw32 -j$(nproc) - name: Build Windows (Cross-Compile) run: | mkdir build && cd build - # We use the toolchain file generated by the previous step - # This tells CMake exactly where the Windows OpenSSL/Boost libraries are - cmake .. -DCMAKE_TOOLCHAIN_FILE=../contrib/depends/x86_64-w64-mingw32/share/toolchain.cmake -DCMAKE_BUILD_TYPE=Release + + # 3. Point CMake to the toolchain file we just built (UPDATED PATH HERE) + cmake .. -DCMAKE_TOOLCHAIN_FILE=../external/monero/contrib/depends/x86_64-w64-mingw32/share/toolchain.cmake -DCMAKE_BUILD_TYPE=Release + make -j$(nproc) - name: Package Windows run: | cd build/src - # Zip the .exe files zip ../../wownero-lws-windows.zip wownero-lws-daemon.exe wownero-lws-admin.exe wownero-lws-client.exe - name: Upload Windows Artifact