forked from such-gitea/wownero-lws
Update .gitea/workflows/build.yaml
Some checks failed
Build Wownero LWS / build-cross (tar.gz, , linux-arm64, aarch64-linux-gnu) (push) Failing after 3m40s
Build Wownero LWS / build-cross (tar.gz, , linux-x64, x86_64-linux-gnu) (push) Failing after 7m18s
Build Wownero LWS / build-macos (push) Failing after 13m18s
Build Wownero LWS / build-cross (zip, .exe, windows-x64, x86_64-w64-mingw32) (push) Failing after 3m57s
Build Wownero LWS / release (push) Has been skipped
Some checks failed
Build Wownero LWS / build-cross (tar.gz, , linux-arm64, aarch64-linux-gnu) (push) Failing after 3m40s
Build Wownero LWS / build-cross (tar.gz, , linux-x64, x86_64-linux-gnu) (push) Failing after 7m18s
Build Wownero LWS / build-macos (push) Failing after 13m18s
Build Wownero LWS / build-cross (zip, .exe, windows-x64, x86_64-w64-mingw32) (push) Failing after 3m57s
Build Wownero LWS / release (push) Has been skipped
This commit is contained in:
@@ -24,17 +24,14 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
# Linux x64
|
||||
- target: x86_64-linux-gnu
|
||||
platform: linux-x64
|
||||
ext: ""
|
||||
archive: "tar.gz"
|
||||
# Linux ARM64
|
||||
- target: aarch64-linux-gnu
|
||||
platform: linux-arm64
|
||||
ext: ""
|
||||
archive: "tar.gz"
|
||||
# Windows x64
|
||||
- target: x86_64-w64-mingw32
|
||||
platform: windows-x64
|
||||
ext: ".exe"
|
||||
@@ -50,12 +47,9 @@ jobs:
|
||||
run: |
|
||||
rm -rf *
|
||||
git config --global --add safe.directory '*'
|
||||
|
||||
# Clone the main repo
|
||||
git clone http://oauth2:$GITHUB_TOKEN@git.such.software:3000/${{ github.repository }}.git .
|
||||
|
||||
# CRITICAL FIX: Rewrite submodule URL to use LOCAL mirror instead of Codeberg
|
||||
# This prevents 502 errors and keeps traffic on LAN
|
||||
# Force submodule to use local mirror
|
||||
git config url."http://oauth2:$GITHUB_TOKEN@git.such.software:3000/Builds/wownero.git".insteadOf "https://codeberg.org/wownero/wownero.git"
|
||||
|
||||
git submodule update --init --recursive
|
||||
@@ -67,6 +61,10 @@ jobs:
|
||||
curl -L -k -o sdk.tar.gz \
|
||||
"https://git.such.software/Builds/wownero/releases/download/${{ env.CORE_VERSION }}/wownero-sdk-${{ matrix.platform }}.tar.gz"
|
||||
tar -xf sdk.tar.gz -C wownero-sdk
|
||||
|
||||
# DEBUG: Verify the library actually exists
|
||||
echo "Listing libunbound in SDK:"
|
||||
find wownero-sdk -name "libunbound.a"
|
||||
|
||||
- name: Build LWS (The Nuclear Path Fix)
|
||||
run: |
|
||||
@@ -86,7 +84,8 @@ jobs:
|
||||
PLATFORM_FLAGS=""
|
||||
fi
|
||||
|
||||
# 3. Configure CMake with EXPLICIT Library Paths
|
||||
# 3. Configure CMake with EXPLICIT Library Paths for EVERYTHING
|
||||
# We define BOTH UNBOUND_LIBRARY and UNBOUND_LIBRARIES to catch all cases.
|
||||
cmake .. \
|
||||
$PLATFORM_FLAGS \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
@@ -105,6 +104,7 @@ jobs:
|
||||
\
|
||||
-DUNBOUND_INCLUDE_DIR="$INC" \
|
||||
-DUNBOUND_LIBRARY="$LIB/libunbound.a" \
|
||||
-DUNBOUND_LIBRARIES="$LIB/libunbound.a" \
|
||||
\
|
||||
-DZMQ_INCLUDE_DIR="$INC" \
|
||||
-DZMQ_LIBRARY="$LIB/libzmq.a" \
|
||||
@@ -154,10 +154,7 @@ jobs:
|
||||
run: |
|
||||
rm -rf *
|
||||
git clone http://oauth2:$GITHUB_TOKEN@localhost:3000/${{ github.repository }}.git .
|
||||
|
||||
# FIX: Rewrite submodule URL to use LOCALHOST (Mac Mini is the server)
|
||||
git config url."http://oauth2:$GITHUB_TOKEN@localhost:3000/Builds/wownero.git".insteadOf "https://codeberg.org/wownero/wownero.git"
|
||||
|
||||
git submodule update --init --recursive
|
||||
|
||||
- name: Install Dependencies
|
||||
@@ -176,13 +173,16 @@ jobs:
|
||||
run: |
|
||||
mkdir build && cd build
|
||||
|
||||
# FIX: Added -DWARNINGS_AS_ERRORS=OFF to prevent Boost deprecation failure
|
||||
cmake .. \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DMONERO_SOURCE_DIR=$(pwd)/../wownero-sdk/include/wownero-src \
|
||||
-DOPENSSL_ROOT_DIR=$(brew --prefix openssl) \
|
||||
-DWARNINGS_AS_ERRORS=OFF \
|
||||
-DBUILD_STATIC=OFF
|
||||
|
||||
make -j$(sysctl -n hw.ncpu)
|
||||
# Verbose make to see link errors if they happen
|
||||
make VERBOSE=1 -j$(sysctl -n hw.ncpu)
|
||||
|
||||
- name: Package Release
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user