Update .gitea/workflows/build.yaml
Some checks failed
Build Wownero LWS (Aarch64 Patch) / macos (arm64, macos-arm64, aarch64-apple-darwin11) (push) Failing after 5s
Build Wownero LWS (Aarch64 Patch) / macos (x86_64, macos-x64, x86_64-apple-darwin11) (push) Failing after 5s
Build Wownero LWS (Aarch64 Patch) / linux-native (push) Successful in 2m16s
Build Wownero LWS (Aarch64 Patch) / linux-cross (aarch64, /usr/aarch64-linux-gnu, aarch64-linux-gnu) (push) Failing after 43s
Build Wownero LWS (Aarch64 Patch) / linux-cross (riscv64, /usr/riscv64-linux-gnu, riscv64-linux-gnu) (push) Successful in 2m14s
Build Wownero LWS (Aarch64 Patch) / windows (push) Failing after 1m58s

This commit is contained in:
2026-02-10 18:00:24 -05:00
parent 9cf4dac109
commit c006a81d99

View File

@@ -104,7 +104,7 @@ jobs:
path: release/*.tar.gz
# ==================================================================
# JOB 2: LINUX CROSS (ARM64 / RISCV64) - AARCH64 FIX
# JOB 2: LINUX CROSS (ARM64 / RISCV64) - FIXED URLs
# ==================================================================
linux-cross:
runs-on: ubuntu-latest
@@ -164,24 +164,29 @@ jobs:
if [ -n "$FALLBACK" ]; then ln -s "$FALLBACK" librt.a; fi
fi
# FIX FOR AARCH64: INJECT MISSING BOOST CONTEXT ASM
# FIX: Use correct MASTER URLs so we don't download "404 Not Found"
- 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
# Download the 3 required ASM files
BASE="https://raw.githubusercontent.com/boostorg/context/develop/src/asm"
curl -O $BASE/jump_aarch64_aapcs_elf_gas.S
curl -O $BASE/make_aarch64_aapcs_elf_gas.S
curl -O $BASE/ontop_aarch64_aapcs_elf_gas.S
# Compile them using the cross-compiler
# URL fixed to 'master' branch
BASE="https://raw.githubusercontent.com/boostorg/context/master/src/asm"
curl -f -O $BASE/jump_aarch64_aapcs_elf_gas.S
curl -f -O $BASE/make_aarch64_aapcs_elf_gas.S
curl -f -O $BASE/ontop_aarch64_aapcs_elf_gas.S
# Verify files are not empty/garbage before compiling
if grep -q "Not Found" jump_aarch64_aapcs_elf_gas.S; then echo "FATAL: Download failed"; exit 1; fi
# Compile
aarch64-linux-gnu-gcc -c jump_aarch64_aapcs_elf_gas.S -o jump.o
aarch64-linux-gnu-gcc -c make_aarch64_aapcs_elf_gas.S -o make.o
aarch64-linux-gnu-gcc -c ontop_aarch64_aapcs_elf_gas.S -o ontop.o
# Append them to the existing (broken) static library in the SDK
# Append
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."