forked from such-gitea/wownero-lws
Update .gitea/workflows/build.yaml
Some checks failed
Build Wownero LWS (Linux Static Fix) / linux-native (push) Failing after 2m7s
Build Wownero LWS (Linux Static Fix) / linux-cross (aarch64, /usr/aarch64-linux-gnu, aarch64-linux-gnu) (push) Failing after 50s
Build Wownero LWS (Linux Static Fix) / linux-cross (riscv64, /usr/riscv64-linux-gnu, riscv64-linux-gnu) (push) Failing after 48s
Build Wownero LWS (Linux Static Fix) / windows (push) Failing after 1m41s
Build Wownero LWS (Linux Static Fix) / macos (arm64, macos-arm64, aarch64-apple-darwin11) (push) Failing after 0s
Build Wownero LWS (Linux Static Fix) / macos (x86_64, macos-x64, x86_64-apple-darwin11) (push) Failing after 0s
Some checks failed
Build Wownero LWS (Linux Static Fix) / linux-native (push) Failing after 2m7s
Build Wownero LWS (Linux Static Fix) / linux-cross (aarch64, /usr/aarch64-linux-gnu, aarch64-linux-gnu) (push) Failing after 50s
Build Wownero LWS (Linux Static Fix) / linux-cross (riscv64, /usr/riscv64-linux-gnu, riscv64-linux-gnu) (push) Failing after 48s
Build Wownero LWS (Linux Static Fix) / windows (push) Failing after 1m41s
Build Wownero LWS (Linux Static Fix) / macos (arm64, macos-arm64, aarch64-apple-darwin11) (push) Failing after 0s
Build Wownero LWS (Linux Static Fix) / macos (x86_64, macos-x64, x86_64-apple-darwin11) (push) Failing after 0s
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Build Wownero LWS (Final)
|
||||
name: Build Wownero LWS (Linux Static Fix)
|
||||
on:
|
||||
push:
|
||||
branches: [ master, main ]
|
||||
@@ -7,11 +7,11 @@ on:
|
||||
|
||||
env:
|
||||
NODE_TLS_REJECT_UNAUTHORIZED: '0'
|
||||
CORE_TAG: 'v0.11.4.1' # <--- Updated to your successful build
|
||||
CORE_TAG: 'v0.11.4.1'
|
||||
|
||||
jobs:
|
||||
# ==================================================================
|
||||
# JOB 1: LINUX NATIVE (x86_64)
|
||||
# JOB 1: LINUX NATIVE (x86_64) - Fixed librt linking
|
||||
# ==================================================================
|
||||
linux-native:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -48,7 +48,6 @@ jobs:
|
||||
tar -xf sdk.tar.gz -C /opt/wownero-sdk
|
||||
|
||||
- name: Normalize SDK
|
||||
# Just ensures standard names exist if the upstream build used suffixes
|
||||
run: |
|
||||
cd /opt/wownero-sdk/lib
|
||||
find . -name "libzstd*.a" -exec cp -n {} libzstd.a \; || true
|
||||
@@ -67,6 +66,7 @@ jobs:
|
||||
mkdir build && cd build
|
||||
SDK_DIR="/opt/wownero-sdk"
|
||||
|
||||
# FIX: Explicitly point RT_LIBRARY to the static archive to prevent .so linking error
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_STATIC=ON \
|
||||
-DCMAKE_PREFIX_PATH="$SDK_DIR" \
|
||||
@@ -92,6 +92,7 @@ jobs:
|
||||
-DZLIB_INCLUDE_DIR="$SDK_DIR/include" \
|
||||
-DLIBEVENT_LIBRARY=$SDK_DIR/lib/libevent.a \
|
||||
-DLIBEVENT_INCLUDE_DIR=$SDK_DIR/include \
|
||||
-DRT_LIBRARY=/usr/lib/x86_64-linux-gnu/librt.a \
|
||||
-DUSE_READLINE=OFF \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
||||
|
||||
@@ -173,7 +174,6 @@ jobs:
|
||||
set(CMAKE_SYSTEM_PROCESSOR ${{ matrix.proc }})
|
||||
set(CMAKE_C_COMPILER ${{ matrix.target }}-gcc)
|
||||
set(CMAKE_CXX_COMPILER ${{ matrix.target }}-g++)
|
||||
# Explicit CFLAGS
|
||||
set(CMAKE_C_FLAGS "-D_GNU_SOURCE -D_XOPEN_SOURCE=700" CACHE STRING "" FORCE)
|
||||
set(CMAKE_CXX_FLAGS "-D_GNU_SOURCE -D_XOPEN_SOURCE=700" CACHE STRING "" FORCE)
|
||||
|
||||
@@ -265,9 +265,7 @@ jobs:
|
||||
sed -i '1i #include <ctime>\n#ifdef _WIN32\nchar* strptime(const char* s, const char* f, struct tm* tm) { return 0; }\n#endif' $HEADER
|
||||
|
||||
# FIX ZMQ ASYNC FOR WINDOWS
|
||||
# 1. Inject Defines AND Header at top
|
||||
sed -i '1s/^/#define _WIN32_WINNT 0x0601\n#define WIN32_LEAN_AND_MEAN\n#ifdef _WIN32\n#include <boost\/asio\/windows\/stream_handle.hpp>\n#endif\n/' src/net/zmq_async.h
|
||||
# 2. Replace type
|
||||
sed -i 's/boost::asio::posix::stream_descriptor/boost::asio::windows::stream_handle/g' src/net/zmq_async.h
|
||||
|
||||
- name: Download SDK
|
||||
@@ -302,17 +300,13 @@ jobs:
|
||||
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
|
||||
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
|
||||
set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
|
||||
|
||||
# Explicit defines for Boost
|
||||
set(CMAKE_C_FLAGS "-D_WIN32 -DWIN32 -D_WIN32_WINNT=0x0601" CACHE STRING "" FORCE)
|
||||
set(CMAKE_CXX_FLAGS "-D_WIN32 -DWIN32 -D_WIN32_WINNT=0x0601" CACHE STRING "" FORCE)
|
||||
|
||||
set(CMAKE_FIND_ROOT_PATH /opt/wownero-sdk)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
||||
|
||||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|
||||
EOF
|
||||
|
||||
@@ -364,7 +358,7 @@ jobs:
|
||||
path: release/*.zip
|
||||
|
||||
# ==================================================================
|
||||
# JOB 4: MACOS
|
||||
# JOB 4: MACOS - Hardened paths
|
||||
# ==================================================================
|
||||
macos:
|
||||
runs-on: macos-latest
|
||||
@@ -387,6 +381,7 @@ jobs:
|
||||
run: |
|
||||
rm -rf *
|
||||
git config --global url."http://oauth2:${GITHUB_TOKEN}@git.such.software:3000/Builds/RandomWOW.git".insteadOf "https://codeberg.org/wownero/RandomWOW"
|
||||
git config --global url."http://oauth2:${GITHUB_TOKEN}@git.such.software:3000/Builds/wownero.git".insteadOf "https://codeberg.org/wownero/wownero.git"
|
||||
git clone http://oauth2:$GITHUB_TOKEN@git.such.software:3000/${{ github.repository }}.git .
|
||||
git submodule update --init --recursive
|
||||
|
||||
@@ -411,7 +406,7 @@ jobs:
|
||||
mkdir build && cd build
|
||||
SDK_DIR="$(pwd)/../wownero-sdk"
|
||||
|
||||
# Explicitly set ZSTD and ZLIB to ensure we don't accidentally link system dylibs
|
||||
# Added explicit library paths to avoid dynamic link errors
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_STATIC=ON \
|
||||
-DBoost_USE_STATIC_RUNTIME=OFF \
|
||||
|
||||
Reference in New Issue
Block a user