Fix windows build
Some checks failed
Build Wownero LWS / build-macos (push) Failing after 6m47s
Build Wownero LWS / build-windows (push) Failing after 23s
Build Wownero LWS / build-linux (push) Failing after 7m25s

This commit is contained in:
2026-01-05 07:26:19 -08:00
parent a994aacae2
commit a1910c7fac

View File

@@ -100,7 +100,7 @@ jobs:
files: wownero-lws-linux.zip
build-windows:
runs-on: windows-latest
runs-on: windows-latest # Maps to 'linux-beast'
steps:
- name: Manual Checkout (LAN)
env:
@@ -111,13 +111,18 @@ jobs:
git config --global url."https://github.com/".insteadOf "git@github.com:"
git submodule update --init --recursive
- name: Build Windows Dependencies
run: |
# This magic step compiles OpenSSL, Boost, ZMQ, etc. for Windows
cd contrib/depends
make HOST=x86_64-w64-mingw32 -j$(nproc)
- name: Build Windows (Cross-Compile)
run: |
mkdir build && cd build
cmake .. -DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ \
-DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \
-DCMAKE_BUILD_TYPE=Release
# 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
make -j$(nproc)
- name: Package Windows