|
9 | 9 | pull_request: |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - gha-strawberry-gmake: |
| 12 | + strawberry-gmake: |
13 | 13 |
|
14 | 14 | runs-on: windows-latest |
15 | 15 |
|
| 16 | + strategy: |
| 17 | + fail-fast: false |
| 18 | + matrix: |
| 19 | + # see https://github.com/shogo82148/actions-setup-perl/blob/main/versions/strawberry.json |
| 20 | + perl-version: |
| 21 | + - "5.40" |
| 22 | + - "5.38" |
| 23 | + - "5.36" |
| 24 | + - "5.32" |
| 25 | + - "5.30" |
| 26 | + - "5.28" |
| 27 | + - "5.26" |
| 28 | + |
16 | 29 | 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::" |
17 | 42 | - run: git config --global core.autocrlf false |
18 | 43 | - uses: actions/checkout@master |
19 | 44 | with: |
20 | 45 | fetch-depth: 10 |
21 | 46 | - name: Find out environment |
22 | | - shell: cmd |
| 47 | + shell: bash |
23 | 48 | 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})" |
33 | 53 | - name: Configure |
34 | | - shell: cmd |
| 54 | + shell: bash |
35 | 55 | 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 |
38 | 57 | - name: Build |
39 | 58 | 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 |
43 | 60 | - name: Run Tests |
44 | 61 | 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 |
48 | 63 | - name: Run disttest |
49 | 64 | 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: |
53 | 68 |
|
54 | | - # last version with dmake |
55 | | - strawberry-524-dmake: |
56 | 69 | runs-on: windows-latest |
57 | | - steps: |
58 | 70 |
|
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 | + |
| 81 | + steps: |
| 82 | + - uses: shogo82148/actions-setup-perl@v1 |
| 83 | + with: |
| 84 | + perl-version: ${{ matrix.perl-version }} |
| 85 | + distribution: strawberry |
75 | 86 | - name: target-setup-perl (perl -V) |
76 | 87 | shell: bash |
77 | 88 | run: | |
|
80 | 91 | echo "MYPERL=$MYPERL" >> $GITHUB_ENV |
81 | 92 | $MYPERL -V |
82 | 93 | echo "::endgroup::" |
83 | | -
|
84 | 94 | - run: git config --global core.autocrlf false |
85 | 95 | - uses: actions/checkout@master |
86 | 96 | with: |
|
0 commit comments