Skip to content

Commit 52980c8

Browse files
committed
Handle Windows separately
1 parent 6e1daa2 commit 52980c8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/perltest.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ jobs:
3030
- run: cpanm File::ShareDir::Install
3131
- run: cpanm --installdeps .
3232
- run: prove -lv t
33-
- name: Archive CPAN logs
34-
if: ${{ failure() }}
33+
- name: Archive CPAN logs on Windows
34+
if: ${{ failure() }} && runner.os == 'Windows'
35+
uses: actions/upload-artifact@v3
36+
with:
37+
name: cpan_log
38+
path: $env:HOME\.cpanm\work\*\build.log
39+
- name: Archive CPAN logs on non-Windows
40+
if: ${{ failure() }} && runner.os != 'Windows'
3541
uses: actions/upload-artifact@v3
3642
with:
3743
name: cpan_log

0 commit comments

Comments
 (0)