From 251e92bfd4a8c66b31ad386748fc9fa69e9d6f18 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Mar 2026 22:21:18 +0000 Subject: [PATCH] ci: capture build error log as artifact for debugging https://claude.ai/code/session_01FpJ8JiZ4KVBhkJcUtCM35P --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c737eb612..dcf64b1a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,15 @@ jobs: - run: chmod +x ./gradlew - name: Build - run: ./gradlew assembleDebug --stacktrace + run: ./gradlew assembleDebug --stacktrace 2>&1 | tee build-output.log || (tail -200 build-output.log > build-error.log && exit 1) + + - name: Upload build log on failure + if: failure() + uses: actions/upload-artifact@v4 + with: + name: build-error-log + path: build-error.log + if-no-files-found: ignore - name: Build samples run: |