-
Notifications
You must be signed in to change notification settings - Fork 6
371 lines (347 loc) · 14.5 KB
/
build-msvc.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
name: Build with Cmake & MSVC
run-name: building & testing with Cmake & MSVC
on:
push:
branches:
- 'build-msvc/**'
- 'build/**'
jobs:
Build-with-cmake-msvc:
runs-on: windows-latest
timeout-minutes: 40
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: cmake
shell: pwsh
run: |
New-Item .\Work -ItemType Directory
cd .\Work
cmake.exe ..
- name: cmake --build
shell: pwsh
run: |
cd .\Work
cmake.exe --build .
- name: test kpathsea
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe srcdir=../source/texk/kpathsea
$srcdir/tests/cnfline.test
$srcdir/tests/cnfnewline.test
$srcdir/tests/cnfnull.test || echo "**\n** failed: cnfnull.test\n**"
$srcdir/tests/cnfprog.test
# $srcdir/tests/kpseaccess.test
# $srcdir/tests/kpsereadlink.test
$srcdir/tests/kpsestat.test
$srcdir/tests/kpsewhich.test
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
- name: test dvipdfm-x
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe srcdir=../source/texk/dvipdfm-x
$srcdir/xdvipdfmx.test
$srcdir/xdvipdfm-ann.test
$srcdir/xdvipdfm-bad.test
$srcdir/xdvipdfm-bb.test
$srcdir/xdvipdfm-bkm.test
$srcdir/xdvipdfm-psz.test
$srcdir/xdvipdfm-ptx.test
$srcdir/xdvipdfm-res.test
$srcdir/xdvipdfm-rev.test
$srcdir/xdvipdfm-ttc.test
$srcdir/dvipdfmx-upjf.test
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
SOURCE_DATE_EPOCH: "1588474800"
- name: test dvips
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe srcdir=../source/texk/dvipsk
$srcdir/test-dvips.test
$srcdir/test-afm2tfm.test
$srcdir/beginfontk1.test
$srcdir/eepic-nan.test
$srcdir/pfbincl.test
$srcdir/quotecmd-test.pl || echo "quotecmd-test.pl"
$srcdir/same-name.test
$srcdir/test-missing-image.test
$srcdir/test-overflow-buffers.test
$srcdir/uptex-vf.test
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
SOURCE_DATE_EPOCH: "1588474800"
- name: test makejvf
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe srcdir=../source/texk/makejvf
$srcdir/makejvf.test
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
- name: test mendex
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe srcdir=../source/texk/mendexk
$srcdir/tests/mendex.test
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
- name: test upmendex
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe srcdir=../source/texk/upmendex
$srcdir/tests/upmendex.test
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
- name: test bibtex-x
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe srcdir=../source/texk/bibtex-x
$srcdir/tests/bibtex8.test
$srcdir/tests/bibtexu.test
$srcdir/tests/bibtex8u-mem.test
$srcdir/tests/bibtex8-char.test
$srcdir/tests/bibtex8-sort.test
$srcdir/tests/bibtexu-basic.test
$srcdir/tests/bibtexu-range.test
$srcdir/tests/bibtexu-char.test || \
{ if [ "$?" = "77" ]; then r="SKIP" ; else r="FAIL" ; fi } && echo "$r: bibtexu-char.test"
$srcdir/tests/bibtexu-iscjk.test
$srcdir/tests/bibtexu-sort.test
$srcdir/tests/bibtexu-yannis.test
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
- name: test dviout-util
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe srcdir=../source/texk/dviout-util
$srcdir/dvispc.test
$srcdir/chkdvifont.test
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
- name: test dvi2tty
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe srcdir=../source/texk/dvi2tty DVI2TTY_TREE=dvi2tty-src
$srcdir/disdvi.test
$srcdir/dvi2tty.test
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
- name: test seetex
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe srcdir=../source/texk/seetexk
$srcdir/seetexk.test
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
- name: test dvidvi
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe srcdir=../source/texk/dvidvi
$srcdir/dvidvi.test
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
- name: web2c version check
shell: bash
run: |
cd ./Work/Debug/bin
./tie.exe --version || echo "tie"
echo ""
./tangleboot.exe --version || echo "tangleboot"
echo ""
./tangle.exe --version || echo "tangle"
echo ""
./ctangle.exe --version || echo "ctangle"
echo ""
./ptex.exe --version || echo "ptex"
echo ""
./uptex.exe --version || echo "uptex"
echo ""
ls -lR
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"
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
- name: test web2c
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe KpsDir=./Debug/bin srcdir=../source/texk/web2c
# $srcdir/ctiedir/ctie.test || echo -e "**\n** failed: ctie.test\n**"
# $srcdir/cwebdir/ctwill.test || echo -e "**\n** failed: ctwill.test\n**"
# $srcdir/cwebdir/cweave.test || echo -e "**\n** failed: cweave.test\n**"
$srcdir/tiedir/tie.test || echo -e "**\n** failed: tie.test\n**"
$srcdir/tangle.test || echo -e "**\n** failed: tangle.test\n**"
$srcdir/dvicopy.test || echo -e "**\n** failed: dvicopy.test\n**"
$srcdir/dvitype.test || echo -e "**\n** failed: dvitype.test\n**"
$srcdir/gftodvi.test || echo -e "**\n** failed: gftodvi.test\n**"
$srcdir/gftopk.test || echo -e "**\n** failed: gftopk.test\n**"
$srcdir/gftype.test || echo -e "**\n** failed: gftype.test\n**"
$srcdir/mft.test || echo -e "**\n** failed: mft.test\n**"
$srcdir/patgen.test || echo -e "**\n** failed: patgen.test\n**"
$srcdir/pktogf.test || echo -e "**\n** failed: pktogf.test\n**"
$srcdir/pktype.test || echo -e "**\n** failed: pktype.test\n**"
$srcdir/pltotf.test || echo -e "**\n** failed: pltotf.test\n**"
$srcdir/pooltype.test || echo -e "**\n** failed: pooltype.test\n**"
$srcdir/tftopl.test || echo -e "**\n** failed: tftopl.test\n**"
$srcdir/vftovp.test || echo -e "**\n** failed: vftovp.test\n**"
$srcdir/vptovf.test || echo -e "**\n** failed: vptovf.test\n**"
$srcdir/weave.test || echo -e "**\n** failed: weave.test\n**"
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
- name: test web2c/*ptex
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe KpsDir=./Debug/bin W2CDir=../Debug/bin srcdir=../source/texk/web2c abs_srcdir=../../source/texk/web2c
$srcdir/ptexdir/ptriptest.test || echo -e "**\n** failed: p/ptriptest.test\n**"
$srcdir/ptexdir/pver.test || echo -e "**\n** failed: p/pver.test\n**"
$srcdir/ptexdir/wcfname.test || echo -e "**\n** failed: p/wcfname.test\n**"
$srcdir/uptexdir/uptriptest.test || echo -e "**\n** failed: up/uptriptest.test\n**"
$srcdir/uptexdir/ptriptest.test || echo -e "**\n** failed: up/ptriptest.test\n**"
$srcdir/uptexdir/upver.test || echo -e "**\n** failed: up/upver.test\n**"
$srcdir/uptexdir/upkcat.test || echo -e "**\n** failed: up/upkcat.test\n**"
$srcdir/uptexdir/wcfname.test || echo -e "**\n** failed: up/wcfname.test\n**"
$srcdir/uptexdir/wcfname0.test || echo -e "**\n** failed: up/wcfname0.test\n**"
$srcdir/euptexdir/euptriptest.test || echo -e "**\n** failed: eup/euptriptest.test\n**"
$srcdir/euptexdir/eptriptest.test || echo -e "**\n** failed: eup/eptriptest.test\n**"
$srcdir/euptexdir/pdfprimitive.test || echo -e "**\n** failed: eup/pdfprimitive.test\n**"
$srcdir/euptexdir/eupver.test || echo -e "**\n** failed: eup/eupver.test\n**"
$srcdir/euptexdir/wcfname.test || echo -e "**\n** failed: eup/wcfname.test\n**"
$srcdir/euptexdir/wcfname0.test || echo -e "**\n** failed: eup/wcfname0.test\n**"
env:
srcroot: "../source"
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
LN_S: "cp"
- name: web2c version check
shell: bash
run: |
cd ./Work/Debug/bin
# ./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: "../../../source/texk/kpathsea/tests/windows"
- name: test web2c/omegafonts
shell: bash
run: |
cd ./Work
export BinDir=./Debug/bin ExeExt=.exe W2CDir=./Debug/bin srcdir=../source/texk/web2c/omegafonts
$srcdir/bad.test || echo -e "**\n** failed: omegafonts/bad.test\n**"
$srcdir/charwd.test || echo -e "**\n** failed: omegafonts/charwd.test\n**"
$srcdir/check.test || echo -e "**\n** failed: omegafonts/check.test\n**"
$srcdir/help.test || echo -e "**\n** failed: omegafonts/help.test\n**"
$srcdir/level1.test || echo -e "**\n** failed: omegafonts/level1.test\n**"
$srcdir/ligkern.test || echo -e "**\n** failed: omegafonts/ligkern.test\n**"
$srcdir/ofonts.test || echo -e "**\n** failed: omegafonts/ofonts.test\n**"
$srcdir/omfonts.test || echo -e "**\n** failed: omegafonts/omfonts.test\n**"
$srcdir/overbmp.test || echo -e "**\n** failed: omegafonts/overbmp.test\n**"
$srcdir/realnum.test || echo -e "**\n** failed: omegafonts/realnum.test\n**"
$srcdir/repeat.test || echo -e "**\n** failed: omegafonts/repeat.test\n**"
$srcdir/selectfont.test || echo -e "**\n** failed: omegafonts/selectfont.test\n**"
$srcdir/shorten.test || echo -e "**\n** failed: omegafonts/shorten.test\n**"
$srcdir/specialhex.test || echo -e "**\n** failed: omegafonts/specialhex.test\n**"
$srcdir/version.test || echo -e "**\n** failed: omegafonts/version.test\n**"
$srcdir/yannis.test || echo -e "**\n** failed: omegafonts/yannis.test\n**"
env:
TEXMFCNF: "../source/texk/kpathsea/tests/windows"
- run: echo "⛄ This job's status is ${{ job.status }}."