Update .gitea/workflows/build.yaml

This commit is contained in:
2026-02-10 11:52:51 -05:00
parent f1d02db7cc
commit 929f99d64a

View File

@@ -1,4 +1,4 @@
name: Build Wownero Core (With Libevent)
name: Build Wownero Core (Libevent Fix)
on:
push:
branches: [ master, main ]
@@ -66,7 +66,7 @@ jobs:
# FIX: Inject libevent into the build list (must be before unbound)
sed -i 's/^packages :=.*/packages := boost openssl expat libusb hidapi protobuf libiconv sodium zeromq libevent unbound zlib zstd/' contrib/depends/packages/packages.mk
# GENERATE LIBEVENT.MK
# GENERATE LIBEVENT.MK (Corrected to match zlib pattern)
cat <<'EOF' > contrib/depends/packages/libevent.mk
package=libevent
$(package)_version=2.1.12-stable
@@ -74,16 +74,16 @@ jobs:
$(package)_file_name=$(package)-$($(package)_version).tar.gz
$(package)_sha256_hash=92e6de1be9ec176428fd2367677e61ecedc2fc1cb11bc61069461ea910c1d4d7
define $(package)_set_vars
$(package)_config_opts=--disable-shared --disable-openssl --disable-libenc --disable-samples --disable-debug-mode
$(package)_config_opts=--disable-shared --disable-openssl --disable-libenc --disable-samples --disable-debug-mode --prefix=$($(package)_staging_prefix_dir)
endef
define $(package)_config_cmds
$($(package)_autoconf)
./configure $($(package)_config_opts) --host=${host}
endef
define $(package)_build_cmds
$(MAKE)
endef
define $(package)_stage_cmds
$(MAKE) DESTDIR=$($(package)_staging_dir) install
$(MAKE) install
endef
EOF
sed -i 's/^ /\t/' contrib/depends/packages/libevent.mk
@@ -276,7 +276,7 @@ jobs:
find build/bin -type f -exec cp -v {} output/bin/ \;
cp -v $LIB_DIR/*.a output/lib/
# Final Verification - FORCE FAILURE if libs are missing
# Final Verification
ls -l output/lib/libz*.a
if [ ! -f output/lib/libzstd.a ]; then echo "FATAL: libzstd.a missing"; exit 1; fi
if [ ! -f output/lib/libz.a ]; then echo "FATAL: libz.a missing"; exit 1; fi