Skip to content

Commit 600610f

Browse files
authored
ci(windows): upload build logs on failure (#2655)
1 parent bc46019 commit 600610f

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,15 @@ jobs:
590590
} else {
591591
yarn ci:windows --arch ${{ matrix.platform }}
592592
}
593-
working-directory: packages/app/example/windows
593+
working-directory: packages/app/example
594+
- name: Upload build logs
595+
if: ${{ steps.affected.outputs.windows != '' && failure() }}
596+
uses: actions/upload-artifact@v6
597+
with:
598+
name: windows-msbuild.binlog
599+
path: packages/app/example/windows/*.binlog
600+
if-no-files-found: error
601+
retention-days: 14
594602
- name: Test
595603
if: ${{ steps.affected.outputs.windows != '' && matrix.platform == 'x64' }}
596604
run: |
@@ -636,6 +644,14 @@ jobs:
636644
run: |
637645
yarn windows --logging --no-packager --no-launch --no-deploy
638646
working-directory: template-example
647+
- name: Upload build logs
648+
if: ${{ steps.affected.outputs.windows != '' && failure() }}
649+
uses: actions/upload-artifact@v6
650+
with:
651+
name: windows-template-msbuild.binlog
652+
path: template-example/windows/*.binlog
653+
if-no-files-found: error
654+
retention-days: 14
639655
timeout-minutes: 60
640656
release:
641657
permissions:

0 commit comments

Comments
 (0)