forked from such-gitea/wownero-lws
fix cert issue and update windows build
This commit is contained in:
@@ -3,6 +3,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# --- GLOBAL FIX FOR SSL UPLOADS ---
|
||||||
|
env:
|
||||||
|
NODE_TLS_REJECT_UNAUTHORIZED: '0'
|
||||||
|
# ----------------------------------
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
@@ -46,7 +51,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Package macOS
|
- name: Package macOS
|
||||||
run: |
|
run: |
|
||||||
# Zip all 3 binaries into one file
|
|
||||||
cd build/src
|
cd build/src
|
||||||
zip ../../wownero-lws-macos.zip wownero-lws-daemon wownero-lws-admin wownero-lws-client
|
zip ../../wownero-lws-macos.zip wownero-lws-daemon wownero-lws-admin wownero-lws-client
|
||||||
|
|
||||||
@@ -84,7 +88,6 @@ jobs:
|
|||||||
- name: Package Linux
|
- name: Package Linux
|
||||||
run: |
|
run: |
|
||||||
cd build/src
|
cd build/src
|
||||||
# Create a zip containing all 3 tools
|
|
||||||
zip ../../wownero-lws-linux.zip wownero-lws-daemon wownero-lws-admin wownero-lws-client
|
zip ../../wownero-lws-linux.zip wownero-lws-daemon wownero-lws-admin wownero-lws-client
|
||||||
|
|
||||||
- name: Upload Linux Artifact
|
- name: Upload Linux Artifact
|
||||||
@@ -100,7 +103,7 @@ jobs:
|
|||||||
files: wownero-lws-linux.zip
|
files: wownero-lws-linux.zip
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
runs-on: windows-latest # Maps to 'linux-beast'
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Manual Checkout (LAN)
|
- name: Manual Checkout (LAN)
|
||||||
env:
|
env:
|
||||||
@@ -113,22 +116,24 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Windows Dependencies
|
- name: Build Windows Dependencies
|
||||||
run: |
|
run: |
|
||||||
# FIX: The depends folder is inside the submodule!
|
# 1. Enter the submodule directory where the build system lives
|
||||||
cd external/monero/contrib/depends
|
cd external/monero/contrib/depends
|
||||||
|
|
||||||
|
# 2. Build the dependencies for Windows
|
||||||
make HOST=x86_64-w64-mingw32 -j$(nproc)
|
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
|
||||||
# We use the toolchain file generated by the previous step
|
|
||||||
# This tells CMake exactly where the Windows OpenSSL/Boost libraries are
|
# 3. Point CMake to the toolchain file we just built (UPDATED PATH HERE)
|
||||||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../contrib/depends/x86_64-w64-mingw32/share/toolchain.cmake -DCMAKE_BUILD_TYPE=Release
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=../external/monero/contrib/depends/x86_64-w64-mingw32/share/toolchain.cmake -DCMAKE_BUILD_TYPE=Release
|
||||||
|
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
|
|
||||||
- name: Package Windows
|
- name: Package Windows
|
||||||
run: |
|
run: |
|
||||||
cd build/src
|
cd build/src
|
||||||
# Zip the .exe files
|
|
||||||
zip ../../wownero-lws-windows.zip wownero-lws-daemon.exe wownero-lws-admin.exe wownero-lws-client.exe
|
zip ../../wownero-lws-windows.zip wownero-lws-daemon.exe wownero-lws-admin.exe wownero-lws-client.exe
|
||||||
|
|
||||||
- name: Upload Windows Artifact
|
- name: Upload Windows Artifact
|
||||||
|
|||||||
Reference in New Issue
Block a user