@@ -13,65 +13,80 @@ jobs:
1313
1414 runs-on : windows-latest
1515
16+ strategy :
17+ fail-fast : false
18+ matrix :
19+ perl-version :
20+ - " 5.40"
21+ - " 5.38"
22+ - " 5.36"
23+ - " 5.34.3"
24+ - " 5.32"
25+ - " 5.30"
26+ - " 5.28"
27+ - " 5.26"
28+
1629 steps :
30+ - uses : shogo82148/actions-setup-perl@v1
31+ with :
32+ perl-version : ${{ matrix.perl-version }}
33+ distribution : strawberry
34+ - name : target-setup-perl (perl -V)
35+ shell : bash
36+ run : |
37+ echo "::group::setup-perl (perl -V)"
38+ export MYPERL=$(which -a perl | grep -m 1 hostedtoolcache)
39+ echo "MYPERL=$MYPERL" >> $GITHUB_ENV
40+ $MYPERL -V
41+ echo "::endgroup::"
1742 - run : git config --global core.autocrlf false
1843 - uses : actions/checkout@master
1944 with :
2045 fetch-depth : 10
2146 - name : Find out environment
22- shell : cmd
47+ shell : bash
2348 run : |
24- dir c:\Strawberry
25- path
26- perl -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{gcc})"
27- perl -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{g++})"
28- perl -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{ld})"
29- path C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;%PATH%
30- perl -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{gcc})"
31- perl -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{g++})"
32- perl -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{ld})"
49+ $MYPERL -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{gcc})"
50+ $MYPERL -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{g++})"
51+ $MYPERL -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{ld})"
52+ $MYPERL -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{gmake})"
3353 - name : Configure
34- shell : cmd
54+ shell : bash
3555 run : |
36- path C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;%PATH%
37- perl Makefile.PL
56+ $MYPERL Makefile.PL
3857 - name : Build
3958 shell : cmd
40- run : |
41- path C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;%PATH%
42- gmake
59+ run : gmake
4360 - name : Run Tests
4461 shell : cmd
45- run : |
46- path C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;%PATH%
47- gmake test
62+ run : gmake test
4863 - name : Run disttest
4964 shell : cmd
50- run : |
51- path C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;%PATH%
52- gmake disttest NOECHO=
65+ run : gmake disttest NOECHO=
66+
67+ strawberry-dmake :
5368
54- # last version with dmake
55- strawberry-524-dmake :
5669 runs-on : windows-latest
57- steps :
5870
59- # lifted from PDLPorters/devops/github-actions/ci-dist/action.yml
60- - name : target-setup-perl (actions-setup-perl)
61- shell : bash
62- run : |
63- echo "::group::setup-perl (actions-setup-perl)"
64- git clone \
65- https://github.com/shogo82148/actions-setup-perl.git \
66- -b v1 \
67- .github/actions/actions-setup-perl;
68- node .github/actions/actions-setup-perl/dist/setup/index.js
69- echo "::endgroup::"
70- env :
71- INPUT_DISTRIBUTION : strawberry
72- INPUT_PERL-VERSION : 5.24
73- INPUT_MULTI-THREAD : true
74- INPUT_ENABLE-MODULES-CACHE : false
71+ strategy :
72+ fail-fast : false
73+ matrix :
74+ perl-version :
75+ - " 5.24"
76+ - " 5.22"
77+ - " 5.20"
78+ - " 5.16"
79+ - " 5.14"
80+ - " 5.12"
81+ - " 5.10"
82+ - " 5.8.9"
83+ - " 5.8.8"
84+
85+ steps :
86+ - uses : shogo82148/actions-setup-perl@v1
87+ with :
88+ perl-version : ${{ matrix.perl-version }}
89+ distribution : strawberry
7590 - name : target-setup-perl (perl -V)
7691 shell : bash
7792 run : |
8095 echo "MYPERL=$MYPERL" >> $GITHUB_ENV
8196 $MYPERL -V
8297 echo "::endgroup::"
83-
8498 - run : git config --global core.autocrlf false
8599 - uses : actions/checkout@master
86100 with :
0 commit comments