Skip to content

Commit 685bc8a

Browse files
committed
Debuggin'
1 parent ecc5d3c commit 685bc8a

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/actions/cpan-test/action.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ runs:
5757
JSON::PP \
5858
Test::Harness
5959
60+
- name: Show toolchain versions [Windows]
61+
if: startsWith(inputs.os, 'windows')
62+
shell: pwsh
63+
run: |
64+
perl -MExtUtils::MakeMaker -e "print qq(ExtUtils::MakeMaker $ExtUtils::MakeMaker::VERSION\n)"
65+
perl -MCPAN::Meta -e "print qq(CPAN::Meta $CPAN::Meta::VERSION\n)"
66+
perl -MParse::CPAN::Meta -e "print qq(Parse::CPAN::Meta $Parse::CPAN::Meta::VERSION\n)"
67+
6068
- name: Install modules
6169
run: |
6270
cpanm --notest --with-configure --with-develop --no-man-pages --installdeps .
@@ -102,15 +110,15 @@ runs:
102110
shell: ${{ startsWith(inputs.os, 'windows') && 'powershell' || 'bash' }}
103111

104112
- name: Archive CPAN logs on Windows
105-
if: ${{ failure() && inputs.os == 'windows-latest' }}
113+
if: ${{ failure() && startWith(inputs.os, 'windows' }}
106114
uses: actions/upload-artifact@v5
107115
with:
108116
name: cpan_log-results-${{ github.run_id }}-${{ github.job }}
109117
path: C:\Users\RUNNER~1\.cpanm\work\*\build.log
110118
retention-days: 5
111119

112120
- name: Archive CPAN logs on Unix
113-
if: ${{ failure() && inputs.os != 'windows-latest' }}
121+
if: ${{ failure() && !startsWith(inputs.os, 'windows' }}
114122
uses: actions/upload-artifact@v5
115123
with:
116124
name: cpan_log-results-${{ github.run_id }}-${{ github.job }}

0 commit comments

Comments
 (0)