Skip to content

Commit 4c94cfa

Browse files
zccrsCopilot
andcommitted
ci: add failure log printing step for debugging
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 52f1964 commit 4c94cfa

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/dtkdeclarative-archlinux-build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,16 @@ jobs:
7878
echo "=== Built files ==="
7979
find build -name "*.so" -o -name "*.a" | head -20
8080
81+
- name: Print build logs on failure
82+
if: failure()
83+
run: |
84+
echo "=== cmake-configure.log ==="
85+
cat /tmp/cmake-configure.log 2>/dev/null || echo "(not found)"
86+
echo "=== cmake-build.log (last 100 lines) ==="
87+
tail -100 /tmp/cmake-build.log 2>/dev/null || echo "(not found)"
88+
8189
- name: Install dtkdeclarative to staging directory
8290
run: |
83-
cat build/cmake_install.cmake 2>/dev/null | head -30 || true
8491
DESTDIR=/tmp/dtkdeclarative-install cmake --install build --verbose
8592
echo "Total: $(find /tmp/dtkdeclarative-install -type f | wc -l) files"
8693
find /tmp/dtkdeclarative-install -type f | head -20

0 commit comments

Comments
 (0)