Skip to content

Commit 75452be

Browse files
authored
ci: always upload build logs (#4358)
* ci: always upload build logs * if-no-files-found: warn it's the default but makes the intention clear * add missing build.log * ignore instead of warning (still prints a message)
1 parent 3eb2cef commit 75452be

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,14 @@ jobs:
182182
run: dotnet build ${{ matrix.slnf }} -c Release --no-restore --nologo -v:minimal -flp:logfile=build.log -p:CopyLocalLockFileAssemblies=true -bl:build.binlog
183183

184184
- name: Upload build logs
185-
if: ${{ steps.build.outcome != 'skipped' }}
185+
if: ${{ always() }}
186186
uses: actions/upload-artifact@v4
187187
with:
188188
name: ${{ matrix.rid }}-build-logs
189-
path: build.binlog
189+
path: |
190+
build.log
191+
build.binlog
192+
if-no-files-found: ignore
190193

191194
- name: Test
192195
run: dotnet test ${{ matrix.slnf }} -c Release --no-build --nologo -l GitHubActions -l "trx;LogFilePrefix=testresults_${{ runner.os }}" --collect "XPlat Code Coverage"
@@ -269,13 +272,14 @@ jobs:
269272
run: msbuild Sentry-CI-Build-Windows.slnf -t:Restore,Build -p:Configuration=Release --nologo -v:minimal -flp:logfile=msbuild.log -p:CopyLocalLockFileAssemblies=true -bl:msbuild.binlog
270273

271274
- name: Upload logs
272-
if: ${{ steps.msbuild.outcome != 'skipped' }}
275+
if: ${{ always() }}
273276
uses: actions/upload-artifact@v4
274277
with:
275278
name: ${{ runner.os }}-msbuild-logs
276279
path: |
277280
msbuild.log
278281
msbuild.binlog
282+
if-no-files-found: ignore
279283

280284
trim-analysis:
281285
needs: build-sentry-native

0 commit comments

Comments
 (0)