forked from such-gitea/wownero-lws
Fix windows build
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user