From 644dfcd65fae4dee5599886f93102d3205fb027b Mon Sep 17 00:00:00 2001 From: Sami Ahmed Date: Sun, 15 Mar 2026 16:17:11 -0700 Subject: [PATCH] Fix Windows daemon CI: separate LevelDB step, add error handling Build LevelDB separately so daemon make errors are visible. Add set -eo pipefail and stderr redirect to capture all output. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/build-all.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index b247da2..7f5c184 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -98,12 +98,18 @@ jobs: mingw-w64-x86_64-miniupnpc make + - name: Build LevelDB + run: | + cd src/leveldb + make clean || true + CC=gcc CXX=g++ TARGET_OS=OS_WINDOWS_CROSSCOMPILE make OPT="-fno-keep-inline-dllexport -march=nocona -msahf -mtune=generic -Wa,-mbig-obj -O2" libleveldb.a libmemenv.a + - name: Build daemon run: | + set -eo pipefail cd src mkdir -p obj - make -f makefile.mingw DEPSDIR=/mingw64 -j$(nproc) - ls -la trianglesd.exe + make -f makefile.mingw DEPSDIR=/mingw64 -j$(nproc) 2>&1 strip --strip-all trianglesd.exe cp trianglesd.exe ../trianglesd.exe