Skip to content

Commit 5766151

Browse files
committed
use GHA for all Strawberry, cut down AppVeyor
1 parent ec781fb commit 5766151

File tree

2 files changed

+53
-65
lines changed

2 files changed

+53
-65
lines changed

.appveyor.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,11 @@ 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:
25-
- Perl_VERSION: "latest"
26-
COVERAGE: "Codecov Coveralls" ## note: case sensitive!
27-
AUTHOR_TESTING: 1
28-
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"
3618
- Perl_VERSION: "5.12"
3719
- Perl_VERSION: "5.10"
3820
- Perl_VERSION: "5.8.9"
39-
- Perl_VERSION: "5.8.8"
40-
- Perl_VERSION: "latest"
41-
CI_HELPER_BRANCH: "canary"
42-
TEST_SIGNATURE: 1
4321
global:
4422
AUTOMATED_TESTING: 1
4523
CI_CACHE_DIR: "C:\\cache"

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

Lines changed: 53 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,69 +9,80 @@ on:
99
pull_request:
1010

1111
jobs:
12-
gha-strawberry-gmake:
12+
strawberry-gmake:
1313

1414
runs-on: windows-latest
1515

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+
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+
81+
steps:
82+
- uses: shogo82148/actions-setup-perl@v1
83+
with:
84+
perl-version: ${{ matrix.perl-version }}
85+
distribution: strawberry
7586
- name: target-setup-perl (perl -V)
7687
shell: bash
7788
run: |
@@ -80,7 +91,6 @@ jobs:
8091
echo "MYPERL=$MYPERL" >> $GITHUB_ENV
8192
$MYPERL -V
8293
echo "::endgroup::"
83-
8494
- run: git config --global core.autocrlf false
8595
- uses: actions/checkout@master
8696
with:

0 commit comments

Comments
 (0)