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 4s
Build Wownero LWS (Aarch64 Patch) / linux-native (push) Successful in 2m18s
Build Wownero LWS (Aarch64 Patch) / linux-cross (aarch64, /usr/aarch64-linux-gnu, aarch64-linux-gnu) (push) Successful in 2m16s
Build Wownero LWS (Aarch64 Patch) / linux-cross (riscv64, /usr/riscv64-linux-gnu, riscv64-linux-gnu) (push) Successful in 2m9s
Build Wownero LWS (Aarch64 Patch) / windows (push) Failing after 1m52s

This commit is contained in:
2026-02-10 20:08:36 -05:00
parent c006a81d99
commit fa50adc8e4

View File

@@ -104,7 +104,7 @@ jobs:
path: release/*.tar.gz
# ==================================================================
# JOB 2: LINUX CROSS (ARM64 / RISCV64) - FIXED URLs
# JOB 2: LINUX CROSS (ARM64 / RISCV64) - CORRECTED FILENAMES
# ==================================================================
linux-cross:
runs-on: ubuntu-latest
@@ -164,29 +164,29 @@ jobs:
if [ -n "$FALLBACK" ]; then ln -s "$FALLBACK" librt.a; fi
fi
# FIX: Use correct MASTER URLs so we don't download "404 Not Found"
# FIX: Use correct filenames (arm64 instead of aarch64)
- 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
# URL fixed to 'master' branch
# Use 'arm64' in filename, not 'aarch64'
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
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 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
# 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_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
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
# 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."