-
Notifications
You must be signed in to change notification settings - Fork 60
178 lines (116 loc) · 5.67 KB
/
windows-x64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# This file is GENERATED BY
# CI-testing/translate-travis.yml-to-github-actions.py
jobs:
perl:
runs-on: windows-latest
steps:
- name: Setup perl
uses: shogo82148/actions-setup-perl@v1
with:
distribution: strawberry
perl-version: ${{ matrix.perl-version }}
- name: Set git to use LF
run: 'git config --global core.autocrlf false
git config --global core.eol lf
'
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: perl -V
run: perl -V
- uses: cygwin/cygwin-install-action@master
with:
packages: docbook-xml docbook-xsl doxygen libxml2 libxslt
- name: install cpanm and mult modules
uses: perl-actions/install-with-cpanm@v1
with:
install: 'App::Docmake
Code::TidyAll::Plugin::ClangFormat
Code::TidyAll::Plugin::Flake8
Code::TidyAll::Plugin::TestCount
File::Find::Object
List::Util
Path::Tiny
Perl::Critic
Perl::Tidy
Test::Code::TidyAll
Test::Differences
Test::RunValgrind
Test::TrailingSpace
Test::Trap'
- name: Set up MinGW
uses: e-t-l/setup-mingw@patch-1
with:
platform: x64
- name: install and test_script code
run: '@echo on
SET MSYSTEM=MINGW64
SET VERBOSE=1
c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Sy mingw-w64-x86_64-libsystre"
|| ( echo Failed & exit /B 1 )
IF NOT EXIST C:\strawberry ( echo "strawberryperl is not installed.
Please fix appveyor.yml" exit 1 ) || ( echo Failed & exit /B 1 )
c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu" || ( echo Failed
& exit /B 1 )
SET PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
perl -v || ( echo Failed & exit /B 1 )
IF NOT EXIST C:\Perl5 mkdir C:\Perl5 || ( echo Failed & exit /B 1
)
SET PATH=C:\msys64\mingw64\bin;C:\msys64\bin;C:\Perl5\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
SET PERL5LIB=%PERL5LIB%;C:/Perl5/lib/perl5
SET PERL_LOCAL_LIB_ROOT=C:/Perl5
SET PERL_MB_OPT=--install_base C:/Perl5
SET PERL_MM_OPT=INSTALL_BASE=C:/Perl5
call C:\strawberry\perl\bin\cpanm --notest App::Docmake Code::TidyAll::Plugin::ClangFormat
Code::TidyAll::Plugin::Flake8 Code::TidyAll::Plugin::TestCount File::Find::Object
List::Util Path::Tiny Perl::Critic Perl::Tidy Test::Code::TidyAll
Test::Differences Test::RunValgrind Test::TrailingSpace Test::Trap
|| ( echo Failed & exit /B 1 )
if not exist C:\libtap mkdir C:\libtap || ( echo Failed & exit /B
1 )
dir C:\ || ( echo Failed & exit /B 1 )
dir C:\msys64 || ( echo Failed & exit /B 1 )
dir C:\msys64\mingw64 || ( echo Failed & exit /B 1 )
dir C:\msys64\mingw64\bin || ( echo Failed & exit /B 1 )
perl -v || ( echo Failed & exit /B 1 )
git clone https://github.com/shlomif/rinutils rinutils || ( echo Failed
& exit /B 1 )
mkdir rinutils\b || ( echo Failed & exit /B 1 )
cd rinutils\b || ( echo Failed & exit /B 1 )
set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe
cmake -G "MinGW Makefiles" -DWITH_TEST_SUITE=OFF -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM%
-DCMAKE_INSTALL_PREFIX=C:\libtap .. || ( echo Failed & exit /B 1 )
echo %PATH% || ( echo Failed & exit /B 1 )
gmake || ( echo Failed & exit /B 1 )
gmake install || ( echo Failed & exit /B 1 )
SET MYOLDPATH_=%PATH%
mkdir ..\b32 || ( echo Failed & exit /B 1 )
cd ..\b32 || ( echo Failed & exit /B 1 )
cmake -G "MinGW Makefiles" -DWITH_TEST_SUITE=OFF -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM%
-DCMAKE_INSTALL_PREFIX=C:\libtap32 .. || ( echo Failed & exit /B 1
)
echo %PATH% || ( echo Failed & exit /B 1 )
gmake || ( echo Failed & exit /B 1 )
gmake install || ( echo Failed & exit /B 1 )
SET PATH=%MYOLDPATH_%
cd ..\..\ || ( echo Failed & exit /B 1 )
set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe
set CPATH=c:\mingw64\include;c:\msys64\mingw64\include
set LIBRARY_PATH=c:\mingw64\lib;c:\msys64\mingw64\lib
set PATH=%PATH%;c:\mingw64\lib;c:\mingw64\bin;c:\msys64\mingw64\lib;c:\msys64\mingw64\bin
SET PATH=%PATH%;C:\Python35-x64
SET FORTUNE_TEST_DEBUG=1
SET DOCMAKE_PATH_PREFIX="C:\cygwin\bin;"
SET SKIP_RINUTILS_INSTALL=1
perl CI-testing/continuous-integration-testing.pl --gen="MinGW Makefiles"
|| ( echo Failed & exit /B 1 )
'
shell: cmd
strategy:
fail-fast: true
matrix:
perl-version:
- '5.30'
name: windows-x64
'on':
- push