From 265853ef8c35d055c09da32b753fee927970394c Mon Sep 17 00:00:00 2001 From: shawnlaffan Date: Wed, 25 Jun 2025 14:21:09 +1000 Subject: [PATCH] CI: Use shogo82148/actions-setup-perl on windows --- .github/workflows/windows.yml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index ed9602a..f7f6c10 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -9,26 +9,21 @@ on: 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 + AUTOMATED_TESTING: 1 jobs: perl: - runs-on: windows-latest steps: - uses: actions/checkout@v4 - - 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 + - uses: shogo82148/actions-setup-perl@v1 + with: + perl-version: "5.38" + distribution: strawberry + install-modules-with: cpanm + install-modules-args: --with-develop --with-configure --verbose - name: perl -V run: | @@ -38,5 +33,5 @@ jobs: run: | perl gen_multi_tests.pl perl Makefile.PL - make - make test + gmake + gmake test