Skip to content

Commit 42b47c6

Browse files
authored
chore(ci): Upload build log in spm.yml job (#15376)
1 parent 8314558 commit 42b47c6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/spm.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ jobs:
8585
max_attempts: 3
8686
retry_wait_seconds: 120
8787
command: scripts/build.sh Firebase-Package iOS ${{ matrix.test }}
88+
- uses: actions/upload-artifact@v4
89+
if: ${{ failure() }}
90+
with:
91+
name: spm-build-run-${{ matrix.os }}-${{ matrix.xcode }}-logs
92+
path: xcodebuild-*.log
93+
if-no-files-found: error
8894

8995
# Test iOS Device build since some Firestore dependencies build different files.
9096
iOS-Device:
@@ -116,8 +122,9 @@ jobs:
116122
- uses: actions/upload-artifact@v4
117123
if: ${{ failure() }}
118124
with:
119-
name: spm-ios-device-${{ matrix.os }}-${{ matrix.xcode }}-xcodebuild-build.log
120-
path: xcodebuild-build.log
125+
name: spm-ios-device-${{ matrix.os }}-${{ matrix.xcode }}-logs
126+
path: xcodebuild-*.log
127+
if-no-files-found: error
121128

122129
platforms:
123130
# Don't run on private repo unless it is a PR.
@@ -158,4 +165,5 @@ jobs:
158165
with:
159166
name: spm-platforms-${{ matrix.target }}-${{ matrix.os }}-${{ matrix.xcode }}-logs
160167
path: xcodebuild-*.log
168+
if-no-files-found: error
161169

0 commit comments

Comments
 (0)