Skip to content

Commit

Permalink
Use actions-setup-perl instead of incorrectly doing it ourselves, so …
Browse files Browse the repository at this point in the history
…we actually get the versions of perl that we want; 5.24 and below use a weird make
  • Loading branch information
DrHyde committed Feb 6, 2023
1 parent 35a3f2f commit 5ba7f62
Showing 1 changed file with 30 additions and 31 deletions.
61 changes: 30 additions & 31 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
# cribbed from https://stackoverflow.com/questions/72367353/testing-perl-on-windows-with-github-actions

on: [push, pull_request]
name: Windows

---
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
distribution: strawberry
perl-version: ${{ matrix.perl-version }}
- name: perl -V
run: perl -V
- name: Install Dependencies
run: |
cpanm ExtUtils::MakeMaker Test::Pod Test::Pod::Coverage || cat $HOME/.cpanm/work/*/build.log
cpanm --installdeps . || cat $HOME/.cpanm/work/*/build.log
- name: Run Tests
run: |
perl Makefile.PL
if( "${{ matrix.perl-version }}" -lt "5.26" ) { dmake test TEST_VERBOSE=1 } else { gmake test TEST_VERBOSE=1 }
strategy:
fail-fast: false
matrix:
perl-version:
- '5.20'
- '5.22'
- '5.24'
- '5.26'
- '5.28'
- '5.30'
- '5.32'
- '5.34'
- 'latest'
steps:
- uses: actions/checkout@v3
- name: Set up Perl
run: |
choco install strawberryperl
echo "C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin" >> $GITHUB_PATH
- name: perl -V
run: perl -V
- name: Install Dependencies
run: |
cpanm ExtUtils::MakeMaker Test::Pod Test::Pod::Coverage || cat $HOME/.cpanm/work/*/build.log
cpanm --installdeps . || cat $HOME/.cpanm/work/*/build.log
- name: Run Tests
run: |
perl Makefile.PL
make test TEST_VERBOSE=1
- '5.20'
- '5.22'
- '5.24'
- '5.26'
- '5.28'
- '5.30'
- '5.32'
- latest
name: Windows
on:
- push
- pull_request

0 comments on commit 5ba7f62

Please sign in to comment.