Skip to content

Commit 1fba850

Browse files
committed
Improve toolchain
1 parent edad5ff commit 1fba850

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,24 @@ runs:
3434
run: |
3535
cpanm --notest --reinstall Module::Build ExtUtils::MakeMaker
3636
37+
- name: Upgrade CPAN toolchain (metadata + installer)
38+
shell: ${{ startsWith(inputs.os, 'windows') && 'powershell' || 'bash' }}
39+
run: |
40+
# Ensure we have a recent cpanm first
41+
cpanm --notest --quiet App::cpanminus
42+
cpanm --notest --quiet --self-upgrade
43+
44+
# Upgrade the pieces that generate/read MYMETA and other metadata
45+
cpanm --notest --quiet --reinstall \
46+
ExtUtils::MakeMaker \
47+
Module::Build \
48+
CPAN::Meta \
49+
CPAN::Meta::Requirements \
50+
CPAN::Meta::YAML \
51+
Parse::CPAN::Meta \
52+
JSON::PP \
53+
Test::Harness
54+
3755
- name: Install modules
3856
run: |
3957
cpanm --notest --with-configure --with-develop --no-man-pages --installdeps .

0 commit comments

Comments
 (0)