-
Notifications
You must be signed in to change notification settings - Fork 11
266 lines (167 loc) · 7.48 KB
/
windows.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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
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
- name: perl -V
run: perl -V
- name: install cpanm and mult modules
uses: perl-actions/install-with-cpanm@v1
with:
install: 'Code::TidyAll::Plugin::ClangFormat
Code::TidyAll::Plugin::TestCount
CHI
Devel::Trace
Games::Solitaire::Verify::HorneAutomovePrune
LWP
Perl::Tidy
Task::FreecellSolver::Testing
Test::Code::TidyAll'
- name: install and test_script code
run: '@echo on
SET MSYS_PACKAGES=mingw-w64-x86_64-cmocka mingw-w64-i686-cmocka mingw-w64-x86_64-pkg-config
mingw-w64-i686-pkg-config
SET PY3MODS=cffi freecell_solver pycotap pysol_cards random2 six
dir
cd
c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu"
c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu"
choco install ag
if not exist C:\libtap mkdir C:\libtap
copy c:\Python35-x64\python.exe c:\Python35-x64\python3.exe
SET PATH=C:\Python35-x64;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
python3 -mpip install %PY3MODS%
perl -v
copy C:\msys64\mingw64\bin\mingw32-make.exe C:\msys64\mingw64\bin\make.exe
SET PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
SET PERL5LIB=C:/_P5/lib/perl5
SET PERL_LOCAL_LIB_ROOT=C:/_P5
SET PERL_MB_OPT=--install_base C:/_P5
SET PERL_MM_OPT=INSTALL_BASE=C:/_P5
perl -v
curl -o C:\libtap\gperf-3.0.4.tar.gz http://ftp.gnu.org/pub/gnu/gperf/gperf-3.0.4.tar.gz
copy C:\libtap\gperf-3.0.4.tar.gz .
tar -xvf gperf-3.0.4.tar.gz
cd gperf-3.0.4 && perl -e "if (-e qq#C:\\libtap\\bin\\gperf.exe#)
{ exit(0); } $ENV{PATH} = qq#C:\\msys64\\mingw64\\bin;$ENV{PATH}#;
system(''sh configure --prefix=C:/libtap'') or system(''gmake'') or
system(''gmake install'');" && cd ..
git clone https://github.com/clibs/cmocka libtap
mkdir libtap\b
cd libtap\b
set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe
cmake -G "MinGW Makefiles" -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM%
-DCMAKE_INSTALL_PREFIX=C:\libtap ..
echo %PATH%
gmake
gmake install
cd ..\..\
git clone https://github.com/shlomif/rinutils rinutils
mkdir rinutils\b
cd rinutils\b
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 %PATH%
gmake
gmake install
SET MYOLDPATH_=%PATH%
SET PATH=C:\MinGW\bin;%PATH%
mkdir ..\b32
cd ..\b32
cmake -G "MinGW Makefiles" -DWITH_TEST_SUITE=OFF -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM%
-DCMAKE_INSTALL_PREFIX=C:\libtap32 ..
echo %PATH%
gmake
gmake install
SET PATH=%MYOLDPATH_%
cd ..\..\
set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe
set LIBRARY_PATH=C:\libtap\lib
set CMAKE_LIBRARY_PATH=C:\libtap\lib
set CMAKE_PREFIX_PATH=C:/libtap;c:/libtap32
set LD_LIBRARY_PATH=C:\libtap\lib
set PKG_CONFIG_PATH=C:\libtap\lib\pkgconfig;
dir c:\libtap /s
set CPATH=C:\libtap\include
set PATH=C:\libtap\bin;%PATH%
set PATH=C:\msys64\mingw64\bin;%PATH%
del c:\msys64\mingw64\bin\python*.exe
set HARNESS_BREAK=1
set FCS_USE_TEST_RUN=1
mkdir fc-solve\b
cd fc-solve\b
perl ../scripts/Tatzer -G "MinGW Makefiles" -l x64t --dbm=kaztree
SET PATH=C:\projects\fc-solve\fc-solve\scripts\win32;%PATH%
echo %PATH%
gmake
gmake boards
SET PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;C:\_P5\bin;%PATH%
perl ../source/run-tests.pl
cd ..
mkdir pkg-build-win64
cd pkg-build-win64
perl ../scripts/Tatzer -G "MinGW Makefiles" --notest-suite -r
gmake package
cpack -G WIX
cd ..
mkdir pkg-build
cd pkg-build
SET PATH=C:\MinGW\bin;%PATH%
perl ../scripts/Tatzer -G "MinGW Makefiles" --notest-suite -r --dbm=none
gmake package
cpack -G WIX
perl ../scripts/Tatzer -G "MinGW Makefiles" -l pysol_defs --notest-suite
-r --prefix=c:\fcs-pysol --dbm=none
gmake install
7z a fc-solve-for-pysol.zip c:/fcs-pysol
'
shell: cmd
- name: upload build artifacts - Freecell Solver Zip Distribution for PySol
FC
uses: actions/upload-artifact@v2
with:
name: Freecell Solver Zip Distribution for PySol FC
path: fc-solve\pkg-build\fc-solve-for-pysol.zip
- name: upload build artifacts - Freecell Solver Win32 Package
uses: actions/upload-artifact@v2
with:
name: Freecell Solver Win32 Package
path: fc-solve\pkg-build\freecell-solver-*-win32.exe
- name: upload build artifacts - Freecell Solver Win64 Package
uses: actions/upload-artifact@v2
with:
name: Freecell Solver Win64 Package
path: fc-solve\pkg-build-win64\freecell-solver-*-win64.exe
- name: upload build artifacts - Freecell Solver Win32 MSI Package
uses: actions/upload-artifact@v2
with:
name: Freecell Solver Win32 MSI Package
path: fc-solve\pkg-build\freecell-solver-*.msi
- name: upload build artifacts - Freecell Solver Win64 MSI Package
uses: actions/upload-artifact@v2
with:
name: Freecell Solver Win64 MSI Package
path: fc-solve\pkg-build-win64\freecell-solver-*.msi
strategy:
fail-fast: true
matrix:
perl-version:
- '5.30'
name: windows
'on':
pull_request: null
push:
branches:
- '*'
tags-ignore:
- '*'