Skip to content

Commit 558eef7

Browse files
committed
use GHA for all Strawberry, cut down AppVeyor
1 parent 93b9f41 commit 558eef7

File tree

2 files changed

+56
-60
lines changed

2 files changed

+56
-60
lines changed

.appveyor.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,12 @@ branches:
1313

1414
skip_tags: true ## do not build on tags
1515

16-
matrix:
17-
allow_failures:
18-
- AUTHOR_TESTING: 1
19-
- TEST_SIGNATURE: 1
20-
- CI_HELPER_BRANCH: canary
21-
- Perl_VERSION: "5.8.8" ## allow perl v5.8.8 failures; (v5.8.8 is problematic for many projects)
22-
2316
environment:
2417
matrix:
2518
- Perl_VERSION: "latest"
2619
COVERAGE: "Codecov Coveralls" ## note: case sensitive!
2720
AUTHOR_TESTING: 1
2821
RELEASE_TESTING: 1
29-
- Perl_VERSION: "5.28"
30-
- Perl_VERSION: "5.26"
31-
- Perl_VERSION: "5.24"
32-
- Perl_VERSION: "5.22"
33-
- Perl_VERSION: "5.20"
34-
- Perl_VERSION: "5.16"
35-
- Perl_VERSION: "5.14"
36-
- Perl_VERSION: "5.12"
37-
- Perl_VERSION: "5.10"
38-
- Perl_VERSION: "5.8.9"
39-
- Perl_VERSION: "5.8.8"
4022
- Perl_VERSION: "latest"
4123
CI_HELPER_BRANCH: "canary"
4224
TEST_SIGNATURE: 1

.github/workflows/smoke-windows-strawberryperl.yml

Lines changed: 56 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -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: |
@@ -80,7 +95,6 @@ jobs:
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

Comments
 (0)