forked from such-gitea/wownero-lws
Fix windows build
This commit is contained in:
@@ -100,7 +100,7 @@ jobs:
|
|||||||
files: wownero-lws-linux.zip
|
files: wownero-lws-linux.zip
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest # Maps to 'linux-beast'
|
||||||
steps:
|
steps:
|
||||||
- name: Manual Checkout (LAN)
|
- name: Manual Checkout (LAN)
|
||||||
env:
|
env:
|
||||||
@@ -111,13 +111,18 @@ jobs:
|
|||||||
git config --global url."https://github.com/".insteadOf "git@github.com:"
|
git config --global url."https://github.com/".insteadOf "git@github.com:"
|
||||||
git submodule update --init --recursive
|
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)
|
- name: Build Windows (Cross-Compile)
|
||||||
run: |
|
run: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake .. -DCMAKE_SYSTEM_NAME=Windows \
|
# We use the toolchain file generated by the previous step
|
||||||
-DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ \
|
# This tells CMake exactly where the Windows OpenSSL/Boost libraries are
|
||||||
-DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=../contrib/depends/x86_64-w64-mingw32/share/toolchain.cmake -DCMAKE_BUILD_TYPE=Release
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
|
|
||||||
- name: Package Windows
|
- name: Package Windows
|
||||||
|
|||||||
Reference in New Issue
Block a user