Skip to content

Commit 3249402

Browse files
bzbarsky-applepull[bot]
authored andcommitted
Upload framework build logs on failure in darwin-tests job. (#27680)
This way if building darwin-framework-tool fails we will know why.
1 parent 280123b commit 3249402

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/darwin-tests.yaml

+10-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
uses: ./.github/actions/checkout-submodules-and-bootstrap
6161
with:
6262
platform: darwin
63-
bootstrap-log-name: bootstrap-logs-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
63+
bootstrap-log-name: bootstrap-logs-darwin-${{ matrix.build_variant }}
6464

6565
- name: Run macOS Darwin Framework Tool Build Debug
6666
working-directory: src/darwin/Framework
@@ -126,21 +126,27 @@ jobs:
126126
uses: actions/upload-artifact@v3
127127
if: ${{ failure() && !env.ACT }}
128128
with:
129-
name: crash-core-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
129+
name: crash-core-darwin-${{ matrix.build_variant }}
130130
path: /cores/
131131
# Cores are big; don't hold on to them too long.
132132
retention-days: 5
133133
- name: Uploading diagnostic logs
134134
uses: actions/upload-artifact@v3
135135
if: ${{ failure() && !env.ACT }}
136136
with:
137-
name: crash-log-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
137+
name: crash-log-darwin-${{ matrix.build_variant }}
138138
path: ~/Library/Logs/DiagnosticReports/
139+
- name: Uploading framework build log
140+
uses: actions/upload-artifact@v3
141+
if: ${{ failure() && !env.ACT }}
142+
with:
143+
name: framework-build-log-darwin-${{ matrix.build_variant }}
144+
path: out/darwin-x64-darwin-framework-tool-${{ matrix.build_variant }}/darwin_framework_build.log
139145
- name: Uploading objdir for debugging
140146
uses: actions/upload-artifact@v3
141147
if: ${{ failure() && !env.ACT }}
142148
with:
143-
name: crash-objdir-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }}
149+
name: crash-objdir-darwin-${{ matrix.build_variant }}
144150
path: objdir-clone/
145151
# objdirs are big; don't hold on to them too long.
146152
retention-days: 5

0 commit comments

Comments
 (0)