automatic migration: bump-2024 #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: windows | |
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
pull_request: | |
env: | |
PERL5LIB: c:\cx\lib\perl5 | |
PERL_LOCAL_LIB_ROOT: c:/cx | |
PERL_MB_OPT: --install_base C:/cx | |
PERL_MM_OPT: INSTALL_BASE=C:/cx | |
jobs: | |
perl: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Prepare for cache | |
run: | | |
perl -V > perlversion.txt | |
ls -l perlversion.txt | |
- name: Cache CPAN modules | |
uses: actions/cache@v1 | |
env: | |
cache-name: cache-cpan-modules | |
with: | |
path: c:\cx | |
key: ${{ runner.os }}-build-${{ hashFiles('perlversion.txt') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ hashFiles('perlversion.txt') }} | |
- name: Set up Perl | |
run: | | |
choco install strawberryperl | |
echo "C:\cx\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
echo "C:\strawberry\c\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
echo "C:\strawberry\perl\site\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
echo "C:\strawberry\perl\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- name: perl -V | |
run: perl -V | |
- name: Install Static Dependencies | |
run: | | |
cpanm -n Dist::Zilla | |
dzil authordeps --missing | cpanm -n | |
dzil listdeps --missing | cpanm -n | |
- name: Install Dynamic Dependencies | |
run: dzil run --no-build 'cpanm --installdeps .' | |
- name: Run Tests | |
run: dzil test -v | |