Skip to content

Commit 07a8afc

Browse files
committed
Fix(ci): Upload xcodebuild logs on failure for better debugging
The xcbeautify tool, while useful for cleaning up xcodebuild output, can truncate long or multi-line error messages. This is particularly problematic for configuration errors that occur early in the build process, making it difficult to diagnose the root cause from the GitHub Actions logs alone. This change adds a step to the xcodebuild job in the Firestore workflow to upload the raw xcodebuild-*.log file as a build artifact whenever a failure occurs. This ensures that the full, untruncated log is always available for download and inspection, facilitating more effective debugging.
1 parent 3d2c63d commit 07a8afc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/firestore.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,13 @@ jobs:
386386
export EXPERIMENTAL_MODE=true
387387
scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ matrix.target }} xcodebuild
388388
389+
- name: Upload xcodebuild logs
390+
if: failure()
391+
uses: actions/upload-artifact@v4
392+
with:
393+
name: xcodebuild-logs-${{ matrix.target }}
394+
path: xcodebuild-*.log
395+
389396
pod_lib_lint:
390397
needs: check
391398
strategy:

0 commit comments

Comments
 (0)