-
Notifications
You must be signed in to change notification settings - Fork 13
242 lines (155 loc) · 7.92 KB
/
windows-x86.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
# This file is GENERATED BY
# fc-solve/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
- 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
Docker::CLI::Wrapper::Container
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
choco install pkgconfiglite || ( echo Failed & exit /B 1 )
dir || ( echo Failed & exit /B 1 )
cd || ( echo Failed & exit /B 1 )
c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu" || ( echo Failed
& exit /B 1 )
choco install ag || ( echo Failed & exit /B 1 )
if not exist C:\libtap mkdir C:\libtap || ( echo Failed & exit /B
1 )
python3 -mpip install %PY3MODS% || ( echo Failed & exit /B 1 )
perl -v || ( echo Failed & exit /B 1 )
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 || ( echo Failed & exit /B 1 )
if not exist C:\libtap\gperf-3.1.tar.gz curl -o C:\libtap\gperf-3.1.tar.gz
http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz || ( echo Failed
& exit /B 1 )
copy C:\libtap\gperf-3.1.tar.gz . || ( echo Failed & exit /B 1 )
tar -xvf gperf-3.1.tar.gz || ( echo Failed & exit /B 1 )
set MAKE=C:/strawberry/c/bin/gmake.exe
cd gperf-3.1 && perl ../fc-solve/scripts/ci-build-gperf-mswin.pl &&
cd .. || ( echo Failed & exit /B 1 )
git clone https://github.com/clibs/cmocka libtap || ( echo Failed
& exit /B 1 )
mkdir libtap\b || ( echo Failed & exit /B 1 )
cd libtap\b || ( echo Failed & exit /B 1 )
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 Failed & exit /B 1 )
echo %PATH% || ( echo Failed & exit /B 1 )
gmake || ( echo Failed & exit /B 1 )
gmake install || ( echo Failed & exit /B 1 )
cd ..\..\ || ( 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 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 || ( echo Failed & exit /B 1 )
set CPATH=C:\libtap\include
set PATH=C:\libtap\bin;%PATH%
del c:\msys64\mingw64\bin\python*.exe || ( echo Failed & exit /B 1
)
set HARNESS_BREAK=1
set FCS_USE_TEST_RUN=1
mkdir fc-solve\b || ( echo Failed & exit /B 1 )
cd fc-solve\b || ( echo Failed & exit /B 1 )
perl ../scripts/Tatzer -G "MinGW Makefiles" -l x64t --dbm=none ||
( echo Failed & exit /B 1 )
SET PATH=C:\projects\fc-solve\fc-solve\scripts\win32;%PATH%
echo %PATH% || ( echo Failed & exit /B 1 )
gmake || ( echo Failed & exit /B 1 )
gmake boards || ( echo Failed & exit /B 1 )
echo %PATH% || ( echo Failed & exit /B 1 )
cd .. || ( echo Failed & exit /B 1 )
mkdir pkg-build || ( echo Failed & exit /B 1 )
cd pkg-build || ( echo Failed & exit /B 1 )
perl ../scripts/Tatzer -G "MinGW Makefiles" --notest-suite -r --dbm=none
|| ( echo Failed & exit /B 1 )
gmake package || ( echo Failed & exit /B 1 )
cpack -G WIX || ( echo Failed & exit /B 1 )
perl ../scripts/Tatzer -G "MinGW Makefiles" -l pysol_defs --notest-suite
-r --prefix=c:\fcs-pysol --dbm=none || ( echo Failed & exit /B 1 )
gmake install || ( echo Failed & exit /B 1 )
7z a fc-solve-for-pysol.zip c:/fcs-pysol || ( echo Failed & exit /B
1 )
'
shell: cmd
- name: upload-build-artifacts-Freecell Solver Zip Distribution for PySol
FC-${{ matrix.runs-on }}
uses: actions/upload-artifact@v4
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-${{ matrix.runs-on
}}
uses: actions/upload-artifact@v4
with:
name: Freecell Solver Win32 Package
path: fc-solve\pkg-build\freecell-solver-*-win32.exe
- name: upload-build-artifacts-Freecell Solver Win32 MSI Package-${{ matrix.runs-on
}}
uses: actions/upload-artifact@v4
with:
name: Freecell Solver Win32 MSI Package
path: fc-solve\pkg-build\freecell-solver-*-win32.msi
strategy:
fail-fast: true
matrix:
perl-version:
- '5.30'
name: windows-x86
'on':
- push