From c006a81d99b321b113f0776da0a21378e28169e4 Mon Sep 17 00:00:00 2001 From: such-gitea Date: Tue, 10 Feb 2026 18:00:24 -0500 Subject: [PATCH] Update .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index c2825a8..6bd45fe 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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."