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