Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 26 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
- id: action
uses: perl-actions/perl-versions@v2
with:
since-perl: 5.10
# OpenStack::Client 1.0007 requires Perl 5.14, so older Perls can never pass.
since-perl: 5.14

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

time to update to a more recent version requirement

with-devel: true

linux:
Expand All @@ -45,14 +46,17 @@ jobs:
- uses: actions/checkout@v6
- name: perl -V
run: perl -V
# cpm@v2 uses Node 24 (Node 20 is deprecated by GitHub).
# It auto-pins to the legacy cpm 0.998003 for Perl < 5.24,
# so older Perls still get a compatible cpm.
- name: Install dependencies
uses: perl-actions/install-with-cpm@v1
uses: perl-actions/install-with-cpm@v2
with:
sudo: false
global: false
cpanfile: ".github/cpanfile"
- name: Set PERL5LIB to local lib
run: echo "PERL5LIB=$(pwd)/local/lib/perl5" >> $GITHUB_ENV
run: echo "PERL5LIB=${{ github.workspace }}/local/lib/perl5" >> $GITHUB_ENV
- name: Makefile.PL
run: perl Makefile.PL
- name: make test
Expand All @@ -68,11 +72,18 @@ jobs:

steps:
- uses: actions/checkout@v6
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.40'
- name: perl -V
run: perl -V
- name: Install dependencies
run: |
curl -fsSL --compressed https://git.io/cpm | perl - install -g --cpanfile .github/cpanfile
uses: perl-actions/install-with-cpm@v2
with:
global: false
cpanfile: ".github/cpanfile"
- name: Set PERL5LIB to local lib
run: echo "PERL5LIB=${{ github.workspace }}/local/lib/perl5" >> $GITHUB_ENV
- name: Makefile.PL
run: perl Makefile.PL
- name: make test
Expand All @@ -88,14 +99,19 @@ jobs:

steps:
- uses: actions/checkout@v6
- name: Set up Perl
run: |
choco install strawberryperl
echo "C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin" >> $env:GITHUB_PATH
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.40'
distribution: strawberry
- name: perl -V
run: perl -V
- name: Install dependencies
run: cpanm --notest --installdeps .
uses: perl-actions/install-with-cpm@v2
with:
global: false
cpanfile: ".github/cpanfile"
- name: Set PERL5LIB to local lib
run: echo "PERL5LIB=${{ github.workspace }}/local/lib/perl5" >> $GITHUB_ENV
- name: Makefile.PL
run: perl Makefile.PL
- name: make test
Expand Down