From c03ea05430bb7652f906d3a3f67032ccbe8c797e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20V=C3=B6gele?= Date: Sat, 4 Oct 2025 08:15:37 +0200 Subject: [PATCH 1/2] Use actions/checkout@v5 --- .github/workflows/make_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/make_test.yml b/.github/workflows/make_test.yml index 158868e..d2b76be 100644 --- a/.github/workflows/make_test.yml +++ b/.github/workflows/make_test.yml @@ -24,7 +24,7 @@ jobs: MODULES: ${{ matrix.perl == '5.8' && 'Socket6 Net::CIDR::Lite Test::More version' || 'Socket6 Net::CIDR::Lite' }} name: Perl ${{ matrix.perl }} on ${{ matrix.os }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: shogo82148/actions-setup-perl@v1 with: perl-version: ${{ matrix.perl }} From 568c19cd570e7739882463ce4da87cc938b0fcda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20V=C3=B6gele?= Date: Sat, 4 Oct 2025 08:16:44 +0200 Subject: [PATCH 2/2] Use Strawberry Perl and a cpanfile Currently, Socket6 cannot be built on Windows runners. Strawberry Perl distributes a patched Socket6 module. --- .github/workflows/make_test.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/make_test.yml b/.github/workflows/make_test.yml index d2b76be..49da641 100644 --- a/.github/workflows/make_test.yml +++ b/.github/workflows/make_test.yml @@ -21,15 +21,23 @@ jobs: perl: "5.8" fail-fast: false env: - MODULES: ${{ matrix.perl == '5.8' && 'Socket6 Net::CIDR::Lite Test::More version' || 'Socket6 Net::CIDR::Lite' }} + MAKECMD: ${{ (matrix.os == 'windows-latest' && matrix.perl == '5.20' && 'dmake') || (matrix.os == 'windows-latest' && 'gmake') || 'make' }} name: Perl ${{ matrix.perl }} on ${{ matrix.os }} steps: - uses: actions/checkout@v5 - uses: shogo82148/actions-setup-perl@v1 with: perl-version: ${{ matrix.perl }} - install-modules-with: cpanm - install-modules: ${{ env.MODULES }} + distribution: ${{ matrix.os == 'windows-latest' && 'strawberry' || 'default' }} + - run: | + touch cpanfile + echo 'requires "Net::CIDR::Lite" => "0";' >> cpanfile + echo 'requires "Socket" => "0";' >> cpanfile + echo 'requires "Socket6" => "0";' >> cpanfile + echo 'requires "Test::More" => "0.88";' >> cpanfile + echo 'requires "Test::Pod" => "1.00";' >> cpanfile + echo 'requires "version" => "0";' >> cpanfile + - run: cpanm --insecure --installdeps . - run: perl Makefile.PL - - run: make - - run: make test + - run: ${{ env.MAKECMD }} + - run: ${{ env.MAKECMD }} test TEST_VERBOSE=1