Skip to content

Commit 87995f2

Browse files
committed
CI Strawberry with dmake on GHA
1 parent 0d550f9 commit 87995f2

File tree

1 file changed

+58
-1
lines changed

1 file changed

+58
-1
lines changed

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

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
pull_request:
1010

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

1414
runs-on: windows-latest
1515

@@ -50,3 +50,60 @@ jobs:
5050
run: |
5151
path C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;%PATH%
5252
gmake disttest NOECHO=
53+
54+
# last version with dmake
55+
strawberry-524-dmake:
56+
runs-on: windows-latest
57+
steps:
58+
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: false
74+
INPUT_ENABLE-MODULES-CACHE: false
75+
- name: target-setup-perl (perl -V)
76+
shell: bash
77+
run: |
78+
echo "::group::setup-perl (perl -V)"
79+
export MYPERL=$(which -a perl | grep -m 1 hostedtoolcache)
80+
echo "MYPERL=$MYPERL" >> $GITHUB_ENV
81+
$MYPERL -V
82+
echo "::endgroup::"
83+
84+
- run: git config --global core.autocrlf false
85+
- uses: actions/checkout@master
86+
with:
87+
fetch-depth: 10
88+
- name: Find out environment
89+
shell: cmd
90+
run: |
91+
%MYPERL% -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{gcc})"
92+
%MYPERL% -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{g++})"
93+
%MYPERL% -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{ld})"
94+
- name: Configure
95+
shell: cmd
96+
run: |
97+
%MYPERL% Makefile.PL
98+
- name: Build
99+
shell: cmd
100+
run: |
101+
dmake
102+
- name: Run Tests
103+
shell: cmd
104+
run: |
105+
dmake test
106+
- name: Run disttest
107+
shell: cmd
108+
run: |
109+
dmake disttest NOECHO=

0 commit comments

Comments
 (0)