forked from such-gitea/wownero-lws
Update .gitea/workflows/build.yaml
Some checks failed
Build Wownero LWS (Mac RT Fix) / macos (arm64, macos-arm64, aarch64-apple-darwin11) (push) Failing after 2m7s
Build Wownero LWS (Mac RT Fix) / linux-native (push) Successful in 2m34s
Build Wownero LWS (Mac RT Fix) / macos (x86_64, macos-x64, x86_64-apple-darwin11) (push) Failing after 1m5s
Build Wownero LWS (Mac RT Fix) / linux-cross (aarch64, /usr/aarch64-linux-gnu, aarch64-linux-gnu) (push) Successful in 2m36s
Build Wownero LWS (Mac RT Fix) / linux-cross (riscv64, /usr/riscv64-linux-gnu, riscv64-linux-gnu) (push) Successful in 2m14s
Some checks failed
Build Wownero LWS (Mac RT Fix) / macos (arm64, macos-arm64, aarch64-apple-darwin11) (push) Failing after 2m7s
Build Wownero LWS (Mac RT Fix) / linux-native (push) Successful in 2m34s
Build Wownero LWS (Mac RT Fix) / macos (x86_64, macos-x64, x86_64-apple-darwin11) (push) Failing after 1m5s
Build Wownero LWS (Mac RT Fix) / linux-cross (aarch64, /usr/aarch64-linux-gnu, aarch64-linux-gnu) (push) Successful in 2m36s
Build Wownero LWS (Mac RT Fix) / linux-cross (riscv64, /usr/riscv64-linux-gnu, riscv64-linux-gnu) (push) Successful in 2m14s
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Build Wownero LWS (Mac Fix / Win Disabled)
|
name: Build Wownero LWS (Mac RT Fix)
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master, main ]
|
branches: [ master, main ]
|
||||||
@@ -154,8 +154,6 @@ jobs:
|
|||||||
find . -name "libhidapi*.a" -exec cp -n {} libhidapi.a \; || true
|
find . -name "libhidapi*.a" -exec cp -n {} libhidapi.a \; || true
|
||||||
find . -name "libzstd*.a" -exec cp -n {} libzstd.a \; || true
|
find . -name "libzstd*.a" -exec cp -n {} libzstd.a \; || true
|
||||||
find . -name "libz*.a" ! -name "*zmq*" -exec cp -n {} libz.a \; || true
|
find . -name "libz*.a" ! -name "*zmq*" -exec cp -n {} libz.a \; || true
|
||||||
|
|
||||||
# Symlink Cross RT
|
|
||||||
SYSROOT_RT=$(find ${{ matrix.sysroot }} -name "librt.a" 2>/dev/null | head -n 1)
|
SYSROOT_RT=$(find ${{ matrix.sysroot }} -name "librt.a" 2>/dev/null | head -n 1)
|
||||||
if [ -n "$SYSROOT_RT" ]; then
|
if [ -n "$SYSROOT_RT" ]; then
|
||||||
ln -s "$SYSROOT_RT" librt.a
|
ln -s "$SYSROOT_RT" librt.a
|
||||||
@@ -163,31 +161,21 @@ jobs:
|
|||||||
FALLBACK=$(find /usr -name "librt.a" | grep ${{ matrix.proc }} | head -n 1)
|
FALLBACK=$(find /usr -name "librt.a" | grep ${{ matrix.proc }} | head -n 1)
|
||||||
if [ -n "$FALLBACK" ]; then ln -s "$FALLBACK" librt.a; fi
|
if [ -n "$FALLBACK" ]; then ln -s "$FALLBACK" librt.a; fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Patch Boost Context (Aarch64) - USING CORRECT URL
|
|
||||||
- name: Patch Boost Context (Aarch64)
|
- name: Patch Boost Context (Aarch64)
|
||||||
if: matrix.target == 'aarch64-linux-gnu'
|
if: matrix.target == 'aarch64-linux-gnu'
|
||||||
run: |
|
run: |
|
||||||
echo "Downloading and compiling missing Boost Context ASM for aarch64..."
|
echo "Downloading and compiling missing Boost Context ASM for aarch64..."
|
||||||
mkdir -p boost_asm && cd boost_asm
|
mkdir -p boost_asm && cd boost_asm
|
||||||
|
|
||||||
# Use 'develop' branch to avoid 404
|
|
||||||
BASE="https://raw.githubusercontent.com/boostorg/context/develop/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/jump_arm64_aapcs_elf_gas.S
|
||||||
curl -f -O $BASE/make_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
|
curl -f -O $BASE/ontop_arm64_aapcs_elf_gas.S
|
||||||
|
|
||||||
if [ ! -s jump_arm64_aapcs_elf_gas.S ]; then echo "FATAL: Empty file downloaded"; exit 1; fi
|
if [ ! -s jump_arm64_aapcs_elf_gas.S ]; then echo "FATAL: Empty file downloaded"; exit 1; fi
|
||||||
|
|
||||||
aarch64-linux-gnu-gcc -c jump_arm64_aapcs_elf_gas.S -o jump.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 make_arm64_aapcs_elf_gas.S -o make.o
|
||||||
aarch64-linux-gnu-gcc -c ontop_arm64_aapcs_elf_gas.S -o ontop.o
|
aarch64-linux-gnu-gcc -c ontop_arm64_aapcs_elf_gas.S -o ontop.o
|
||||||
|
|
||||||
aarch64-linux-gnu-ar r /opt/wownero-sdk/lib/libboost_context.a jump.o make.o ontop.o
|
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
|
aarch64-linux-gnu-ar s /opt/wownero-sdk/lib/libboost_context.a
|
||||||
echo "Patch applied successfully."
|
|
||||||
|
|
||||||
- name: Install Modern CMake
|
- name: Install Modern CMake
|
||||||
run: |
|
run: |
|
||||||
curl -L -o cmake.tar.gz https://github.com/Kitware/CMake/releases/download/v3.28.1/cmake-3.28.1-linux-x86_64.tar.gz
|
curl -L -o cmake.tar.gz https://github.com/Kitware/CMake/releases/download/v3.28.1/cmake-3.28.1-linux-x86_64.tar.gz
|
||||||
@@ -239,7 +227,7 @@ jobs:
|
|||||||
-DLIBEVENT_INCLUDE_DIR=$SDK_DIR/include \
|
-DLIBEVENT_INCLUDE_DIR=$SDK_DIR/include \
|
||||||
-DRT_LIBRARY=rt \
|
-DRT_LIBRARY=rt \
|
||||||
-DUSE_READLINE=OFF \
|
-DUSE_READLINE=OFF \
|
||||||
-DCMAKE_EXE_LINKER_FLAGS="-static -Wl,--allow-multiple-definition"
|
-DCMAKE_EXE_LINKER_FLAGS="-static -Wl,--allow-multiple-definition"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
- name: Package
|
- name: Package
|
||||||
run: |
|
run: |
|
||||||
@@ -259,7 +247,7 @@ jobs:
|
|||||||
# ...
|
# ...
|
||||||
|
|
||||||
# ==================================================================
|
# ==================================================================
|
||||||
# JOB 4: MACOS - RESTORED & FIXED
|
# JOB 4: MACOS - RT FIX
|
||||||
# ==================================================================
|
# ==================================================================
|
||||||
macos:
|
macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
@@ -310,6 +298,7 @@ jobs:
|
|||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
SDK_DIR="$(pwd)/../wownero-sdk"
|
SDK_DIR="$(pwd)/../wownero-sdk"
|
||||||
|
|
||||||
|
# FIX: REMOVED -DRT_LIBRARY=rt (MacOS uses libc)
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Release \
|
cmake .. -DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_STATIC=ON \
|
-DBUILD_STATIC=ON \
|
||||||
-DBoost_USE_STATIC_RUNTIME=OFF \
|
-DBoost_USE_STATIC_RUNTIME=OFF \
|
||||||
|
|||||||
Reference in New Issue
Block a user