Update .gitea/workflows/build.yaml
Some checks failed
Build Wownero LWS (Windows Fix) / macos (arm64, macos-arm64, aarch64-apple-darwin11) (push) Failing after 6s
Build Wownero LWS (Windows Fix) / macos (x86_64, macos-x64, x86_64-apple-darwin11) (push) Failing after 5s
Build Wownero LWS (Windows Fix) / linux-native (push) Successful in 2m15s
Build Wownero LWS (Windows Fix) / linux-cross (aarch64, /usr/aarch64-linux-gnu, aarch64-linux-gnu) (push) Successful in 2m14s
Build Wownero LWS (Windows Fix) / linux-cross (riscv64, /usr/riscv64-linux-gnu, riscv64-linux-gnu) (push) Successful in 2m4s
Build Wownero LWS (Windows Fix) / windows (push) Failing after 1m51s

This commit is contained in:
2026-02-10 20:35:33 -05:00
parent fa50adc8e4
commit 7432ec4208

View File

@@ -1,4 +1,4 @@
name: Build Wownero LWS (Aarch64 Patch)
name: Build Wownero LWS (Windows Fix)
on:
push:
branches: [ master, main ]
@@ -11,7 +11,7 @@ env:
jobs:
# ==================================================================
# JOB 1: LINUX NATIVE (x86_64) - KEEPING AS IS (GREEN)
# JOB 1: LINUX NATIVE (x86_64) - UNTOUCHED (GREEN)
# ==================================================================
linux-native:
runs-on: ubuntu-latest
@@ -104,7 +104,7 @@ jobs:
path: release/*.tar.gz
# ==================================================================
# JOB 2: LINUX CROSS (ARM64 / RISCV64) - CORRECTED FILENAMES
# JOB 2: LINUX CROSS (ARM64 / RISCV64) - UNTOUCHED (GREEN)
# ==================================================================
linux-cross:
runs-on: ubuntu-latest
@@ -164,29 +164,25 @@ jobs:
if [ -n "$FALLBACK" ]; then ln -s "$FALLBACK" librt.a; fi
fi
# FIX: Use correct filenames (arm64 instead of aarch64)
# FIX: Use 'develop' branch URL
- name: Patch Boost Context (Aarch64)
if: matrix.target == 'aarch64-linux-gnu'
run: |
echo "Downloading and compiling missing Boost Context ASM for aarch64..."
mkdir -p boost_asm && cd boost_asm
# Use 'arm64' in filename, not 'aarch64'
BASE="https://raw.githubusercontent.com/boostorg/context/master/src/asm"
BASE="https://raw.githubusercontent.com/boostorg/context/develop/src/asm"
curl -f -O $BASE/jump_arm64_aapcs_elf_gas.S
curl -f -O $BASE/make_arm64_aapcs_elf_gas.S
curl -f -O $BASE/ontop_arm64_aapcs_elf_gas.S
# Verify download success
if [ ! -s jump_arm64_aapcs_elf_gas.S ]; then echo "FATAL: Empty file downloaded"; exit 1; fi
# Compile
aarch64-linux-gnu-gcc -c jump_arm64_aapcs_elf_gas.S -o jump.o
aarch64-linux-gnu-gcc -c make_arm64_aapcs_elf_gas.S -o make.o
aarch64-linux-gnu-gcc -c ontop_arm64_aapcs_elf_gas.S -o ontop.o
# Append to static lib
aarch64-linux-gnu-ar r /opt/wownero-sdk/lib/libboost_context.a jump.o make.o ontop.o
aarch64-linux-gnu-ar s /opt/wownero-sdk/lib/libboost_context.a
echo "Patch applied successfully."
@@ -255,7 +251,7 @@ jobs:
path: release/*.tar.gz
# ==================================================================
# JOB 3: WINDOWS - UNTOUCHED
# JOB 3: WINDOWS - EXCLUDE CLIENT.CPP
# ==================================================================
windows:
runs-on: ubuntu-latest
@@ -286,7 +282,11 @@ jobs:
perl -pi -e 's/-Werror//g' CMakeLists.txt
perl -pi -e 's/-Werror//g' external/monero/CMakeLists.txt
sed -i '1i #include <ctime>\n#ifdef _WIN32\nchar* strptime(const char* s, const char* f, struct tm* tm) { return 0; }\n#endif' external/monero/contrib/epee/include/storages/portable_storage_val_converters.h
# FIX: DISABLE ZMQ_ASYNC AND CLIENT.CPP ON WINDOWS
sed -i '/zmq_async.cpp/d' src/net/CMakeLists.txt
sed -i '/client.cpp/d' src/rpc/CMakeLists.txt
- name: Download SDK
run: |
curl -L -k -o sdk.tar.gz "https://git.such.software/Builds/wownero/releases/download/${{ env.CORE_TAG }}/wownero-core-x86_64-w64-mingw32.tar.gz"