-
Notifications
You must be signed in to change notification settings - Fork 6
410 lines (376 loc) · 14.3 KB
/
build-mingw.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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
name: Build on MinGW
run-name: building & testing on MinGW
on:
push:
branches:
- 'build-mingw/**'
- 'build/**'
jobs:
Build-on-mingw:
runs-on: windows-latest
timeout-minutes: 90
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server hosted by GitHub."
- run: echo "Branch [ ${{ github.ref }} ] Repository [ ${{ github.repository }} ]"
- name: Check out repository code
uses: actions/checkout@v4
- name: install tools
uses: msys2/setup-msys2@v2
with:
msystem: mingw64
install: >-
mingw-w64-x86_64-autotools
mingw-w64-x86_64-gcc
mingw-w64-x86_64-icu
mingw-w64-x86_64-pkg-config
bison
texinfo
- name: make libs
shell: msys2 {0}
run: |
mkdir -p ./source/Work/libs
mkdir -p ./source/Work/libs/zlib
cd ./source/Work/libs/zlib
../../../libs/zlib/configure
make
make check
cd ../../../..
mkdir -p ./source/Work/libs/libpng
cd ./source/Work/libs/libpng
../../../libs/libpng/configure
make
make check
cd ../../../..
mkdir -p ./source/Work/libs/libpaper
cd ./source/Work/libs/libpaper
../../../libs/libpaper/configure
make
make check
cd ../../../..
mkdir -p ./source/Work/libs/pixman
cd ./source/Work/libs/pixman
../../../libs/pixman/configure
make
make check
cd ../../../..
mkdir -p ./source/Work/libs/cairo
cd ./source/Work/libs/cairo
../../../libs/cairo/configure
make
make check
cd ../../../..
mkdir -p ./source/Work/libs/gmp
cd ./source/Work/libs/gmp
../../../libs/gmp/configure
make
make check
cd ../../../..
mkdir -p ./source/Work/libs/mpfr
cd ./source/Work/libs/mpfr
../../../libs/mpfr/configure
make
make check
cd ../../../..
mkdir -p ./source/Work/libs/mpfi
cd ./source/Work/libs/mpfi
../../../libs/mpfi/configure
make
make check
- name: make kpathsea, ptexenc
shell: msys2 {0}
run: |
mkdir -p ./source/Work/texk
mkdir -p ./source/Work/texk/kpathsea
cd ./source/Work/texk/kpathsea
../../../texk/kpathsea/configure
make
## link without libtool
echo -e "###\n### link without libtool kpsewhich.exe\n###"
gcc -Wimplicit -Wreturn-type -g -O2 -o kpsewhich.exe kpsewhich.o .libs/libkpathsea.a || \
echo -e "**\n** fail to link kpsewhich.exe"
make check || cat tests/kpsesafe.log
cd ../../../..
mkdir -p ./source/Work/texk/ptexenc
cd ./source/Work/texk/ptexenc
../../../texk/ptexenc/configure
make
- name: upmendex
shell: msys2 {0}
run: |
mkdir -p ./source/Work/texk/upmendex
cd ./source/Work/texk/upmendex
../../../texk/upmendex/configure \
--with-system-icu
make
./upmendex --help
make check
- name: dvipdfm-x
shell: msys2 {0}
run: |
mkdir -p ./source/Work/texk/dvipdfm-x
cd ./source/Work/texk/dvipdfm-x
../../../texk/dvipdfm-x/configure
make
make check
- name: dvipsk
shell: msys2 {0}
run: |
mkdir -p ./source/Work/texk/dvipsk
cd ./source/Work/texk/dvipsk
../../../texk/dvipsk/configure
make
make check
- name: makejvf
shell: msys2 {0}
run: |
mkdir -p ./source/Work/texk/makejvf
cd ./source/Work/texk/makejvf
../../../texk/makejvf/configure
make
make check
- name: mendex
shell: msys2 {0}
run: |
mkdir -p ./source/Work/texk/mendexk
cd ./source/Work/texk/mendexk
../../../texk/mendexk/configure
make
make check
- name: dviout-util
shell: msys2 {0}
run: |
mkdir -p ./source/Work/texk/dviout-util
cd ./source/Work/texk/dviout-util
../../../texk/dviout-util/configure
make
make check
- name: dvi2tty
shell: msys2 {0}
run: |
mkdir -p ./source/Work/texk/dvi2tty
cd ./source/Work/texk/dvi2tty
../../../texk/dvi2tty/configure
make
make check
- name: seetex
shell: msys2 {0}
run: |
mkdir -p ./source/Work/texk/seetexk
cd ./source/Work/texk/seetexk
../../../texk/seetexk/configure
make
make check
env:
run_stdio_test: "0"
TEXMFCNF: "../../../texk/kpathsea"
- name: dvidvi
shell: msys2 {0}
run: |
mkdir -p ./source/Work/texk/dvidvi
cd ./source/Work/texk/dvidvi
../../../texk/dvidvi/configure
make
make check
env:
TEXMFCNF: "../../../texk/kpathsea"
- name: bibtex-x
shell: msys2 {0}
run: |
mkdir -p ./source/Work/texk/bibtex-x
cd ./source/Work/texk/bibtex-x
../../../texk/bibtex-x/configure \
--with-system-icu
make
## link without libtool
echo -e "###\n### link without libtool\n###"
gcc -Wimplicit -Wreturn-type -g -O2 -o bibtex8.exe bibtex8-bibtex-1.o bibtex8-bibtex-2.o bibtex8-bibtex-3.o bibtex8-bibtex-4.o bibtex8-bibtex.o bibtex8-utils.o ../../texk/kpathsea/.libs/libkpathsea.a || \
echo -e "**\n** fail to link bibtex8.exe"
g++ -g -O2 -o bibtexu.exe bibtexu-bibtex-1.o bibtexu-bibtex-2.o bibtexu-bibtex-3.o bibtexu-bibtex-4.o bibtexu-bibtex.o bibtexu-utils.o ../../texk/kpathsea/.libs/libkpathsea.a -L/mingw64/lib -licuio -licuin -licuuc -licudt -lpthread -lm || \
echo -e "**\n** fail to link bibtexu.exe"
./bibtex8.exe --version
./bibtexu.exe --version
make check
env:
run_stdio_test: "0"
TEXMFCNF: "../../../texk/kpathsea"
- name: web2c
shell: msys2 {0}
run: |
mkdir -p ./source/Work/texk/web2c
cd ./source/Work/texk/web2c
../../../texk/web2c/configure \
--srcdir=../../../texk/web2c \
--disable-all-pkgs \
--enable-debug \
--enable-tex --disable-tex-synctex \
--enable-etex --enable-etex-synctex \
--enable-ptex --enable-ptex-synctex \
--enable-uptex --enable-uptex-synctex \
--enable-euptex --enable-euptex-synctex \
--enable-mp --enable-pmp --enable-upmp \
--disable-pdftex --disable-pdftex-synctex \
--enable-web-progs \
--enable-synctex \
--disable-mf --disable-mf-nowin \
--disable-aleph \
--disable-luatex --disable-luajittex --disable-luahbtex --disable-luajithbtex \
--disable-xetex --disable-xetex-synctex \
--disable-mflua --disable-mflua-nowin --disable-mfluajit --disable-mfluajit-nowin \
--disable-epsfwin --disable-hp2627win --disable-mftalkwin --disable-nextwin \
--disable-regiswin --disable-suntoolswin --disable-tektronixwin --disable-unitermwin \
--disable-missing \
--with-gnu-ld \
--without-x \
--without-mf-x-toolkit \
--without-system-kpathsea \
--without-system-ptexenc \
--without-system-zlib \
--without-system-libpng \
--without-system-freetype2 \
--without-system-pixman \
--without-system-cairo \
--without-system-gmp \
--without-system-mpfr \
--without-system-mpfi \
--without-system-poppler \
--without-system-xpdf \
--without-system-zziplib \
--without-system-teckit \
--without-system-icu \
--without-system-graphite2 \
--without-system-harfbuzz
make || echo "fail to make"
echo "!!! make complete !!!"
make check || echo "fail to make check"
echo "!!! make check complete !!!"
- name: web2c link without libtool
shell: msys2 {0}
run: |
cd ./source/Work/texk/web2c
## link without libtool
echo -e "###\n### link without libtool ptex.exe\n###"
gcc -Wimplicit -Wreturn-type -g -O2 -o ptex.exe ptexdir/ptex-ptexextra.o ptex-ptexini.o ptex-ptex0.o ptex-ptex-pool.o libkanji.a lib/libp.a ../../texk/ptexenc/.libs/libptexenc.a lib/lib.a ../../texk/kpathsea/.libs/libkpathsea.a ../../libs/zlib/libz.a -lwsock32 || \
echo -e "**\n** fail to link ptex.exe"
echo -e "###\n### link without libtool uptex.exe\n###"
gcc -Wimplicit -Wreturn-type -g -O2 -o uptex.exe uptexdir/uptex-uptexextra.o uptex-uptexini.o uptex-uptex0.o uptex-uptex-pool.o libukanji.a lib/libp.a ../../texk/ptexenc/.libs/libptexenc.a lib/lib.a ../../texk/kpathsea/.libs/libkpathsea.a ../../libs/zlib/libz.a -lwsock32 || \
echo -e "**\n** fail to link uptex.exe"
echo -e "###\n### link without libtool euptex.exe\n###"
gcc -Wimplicit -Wreturn-type -g -O2 -o euptex.exe euptexdir/euptex-euptexextra.o synctexdir/euptex-synctex.o euptex-euptexini.o euptex-euptex0.o euptex-euptex-pool.o libukanji.a lib/libp.a ../../texk/ptexenc/.libs/libptexenc.a lib/lib.a ../../texk/kpathsea/.libs/libkpathsea.a -lwsock32 libmd5.a ../../libs/zlib/libz.a || \
echo -e "**\n** fail to link euptex.exe"
- name: web2c version check
shell: msys2 {0}
run: |
cd ./source/Work/texk/web2c
./ctie.exe --version || echo "ctie"
echo ""
./ctwill.exe --version || echo "ctwill"
echo ""
./cweave.exe --version || echo "cwaeve"
echo ""
./tie.exe --version || echo "tie"
echo ""
./twill.exe --version || echo "twill"
echo ""
./tex.exe --version || echo "tex"
echo ""
./etex.exe --version || echo "etex"
echo ""
./ptex.exe --version || echo "ptex"
echo ""
./uptex.exe --version || echo "uptex"
echo ""
./euptex.exe --version || echo "euptex"
echo ""
./updvitype.exe --version || echo "updvitype"
echo ""
./uppltotf.exe --version || echo "uppltotf"
echo ""
./uptftopl.exe --version || echo "uptftopl"
echo ""
./upbibtex.exe --version || echo "upbibtex"
echo ""
./dvitype.exe --version || echo "dvitype"
echo ""
./dvicopy.exe --version || echo "dvicopy"
echo ""
./pltotf.exe --version || echo "pltotf"
echo ""
./tftopl.exe --version || echo "tftopl"
echo ""
./bibtex.exe --version || echo "bibtex"
echo ""
./gftodvi.exe --version || echo "gftodvi"
echo ""
./gftopk.exe --version || echo "gftopk"
echo ""
./gftype.exe --version || echo "gftype"
echo ""
./mft.exe --version || echo "mft"
echo ""
./patgen.exe --version || echo "patgen"
echo ""
./pktogf.exe --version || echo "pktogf"
echo ""
./pktype.exe --version || echo "pktype"
echo ""
./pooltype.exe --version || echo "pooltype"
echo ""
./vftovp.exe --version || echo "vftovp"
echo ""
./vptovf.exe --version || echo "vptovf"
echo ""
./weave.exe --version || echo "weave"
echo ""
./mpost.exe --version || echo "mpost"
echo ""
./pmpost.exe --version || echo "pmpost"
echo ""
./upmpost.exe --version || echo "upmpost"
echo ""
./synctex.exe help || echo "synctex"
env:
TEXMFCNF: "../../../texk/kpathsea"
- name: web2c check
shell: msys2 {0}
run: |
cd ./source/Work/texk/web2c
export KPSEWHICH="../kpathsea/kpsewhich.exe"
export LN_S=cp
$srcdir/ptexdir/pver.test || echo -e "**\n** failed: p/pver.test\n**"
echo ""
$srcdir/ptexdir/wcfname.test || echo -e "**\n** failed: p/wcfname.test\n**"
echo ""
$srcdir/uptexdir/upver.test || echo -e "**\n** failed: up/upver.test\n**"
echo ""
$srcdir/uptexdir/upkcat.test || echo -e "**\n** failed: up/upkcat.test\n**"
echo ""
$srcdir/uptexdir/wcfname.test || echo -e "**\n** failed: up/wcfname.test\n**"
echo ""
$srcdir/uptexdir/wcfname0.test || echo -e "**\n** failed: up/wcfname0.test\n**"
echo ""
$srcdir/euptexdir/pdfprimitive.test || echo -e "**\n** failed: eup/pdfprimitive.test\n**"
echo ""
$srcdir/euptexdir/eupver.test || echo -e "**\n** failed: eup/eupver.test\n**"
echo ""
$srcdir/euptexdir/wcfname.test || echo -e "**\n** failed: eup/wcfname.test\n**"
echo ""
$srcdir/euptexdir/wcfname0.test || echo -e "**\n** failed: eup/wcfname0.test\n**"
echo ""
export abs_srcdir=../$srcdir
export DIFF=diff
export DIFFFLAGS="--strip-trailing-cr --ignore-matching-lines 'DVItype'"
$srcdir/ptexdir/ptriptest.test || cat ptripdir/ptrip.log
echo ""
$srcdir/uptexdir/ptriptest.test || cat upptripdir/ptrip.log
echo ""
$srcdir/uptexdir/uptriptest.test || cat uptripdir/uptrip.log
echo ""
$srcdir/euptexdir/eptriptest.test || cat eupptripdir/eptrip.log
echo ""
$srcdir/euptexdir/euptriptest.test || cat euptripdir/euptrip.log
echo ""
env:
srcdir: "../../../texk/web2c"
TEXMFCNF: "../../../texk/kpathsea"
- run: echo "⛄ This job's status is ${{ job.status }}."