-
Notifications
You must be signed in to change notification settings - Fork 6
226 lines (217 loc) · 7.53 KB
/
build-ubuntu.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
name: Build on Ubuntu
run-name: building & testing on Ubuntu
on:
push:
branches:
- 'build-ubuntu/**'
- 'build/**'
- 'uptex_ofm'
- 'master'
jobs:
Build-on-ubuntu:
runs-on: ubuntu-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: apt-get texlive
shell: bash
run: |
sudo apt-get update
sudo apt-get install texlive-binaries texlive-fonts-recommended texlive-fonts-extra texlive-lang-japanese
kpsewhich lmroman10-regular.otf
kpsewhich HaranoAjiMincho-Regular.otf
kpsewhich HaranoAjiGothic-Normal.otf
kpsewhich -show-path='opentype fonts'
- name: make libs
shell: bash
run: |
mkdir -p ./source/Work/libs/{zlib,libpng,libpaper}
cd ${{ github.workspace }}/source/Work/libs/zlib
../../../libs/zlib/configure
make
make check
cd ${{ github.workspace }}/source/Work/libs/libpng
../../../libs/libpng/configure
make
make check
cd ${{ github.workspace }}/source/Work/libs/libpaper
../../../libs/libpaper/configure
make
make check
- name: make kpathsea, ptexenc
shell: bash
run: |
mkdir -p ./source/Work/texk/{kpathsea,ptexenc}
cd ${{ github.workspace }}/source/Work/texk/kpathsea
../../../texk/kpathsea/configure
make
make check
cd ${{ github.workspace }}/source/Work/texk/ptexenc
../../../texk/ptexenc/configure
make
- name: make libs
shell: bash
run: |
mkdir -p ./source/Work/libs/{gmp,mpfr,mpfi}
cd ${{ github.workspace }}/source/Work/libs/gmp
../../../libs/gmp/configure
make
make check
cd ${{ github.workspace }}/source/Work/libs/mpfr
../../../libs/mpfr/configure
make
make check
cd ${{ github.workspace }}/source/Work/libs/mpfi
../../../libs/mpfi/configure
make
make check
- name: web2c
shell: bash
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 \
--with-system-pixman \
--with-system-cairo \
--without-system-gmp \
--without-system-mpfr \
--without-system-poppler \
--without-system-xpdf \
--without-system-zziplib \
--without-system-teckit \
--without-system-icu \
--without-system-graphite2 \
--without-system-harfbuzz
make
- name: web2c triptest
shell: bash
run: |
cd ./source/Work/texk/web2c
export abs_srcdir=../$srcdir
export DIFF=diff
export KPSEWHICH="../kpathsea/kpsewhich"
export LN_S="ln -s"
$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"
- name: web2c
shell: bash
run: |
cd ./source/Work/texk/web2c
make check
- name: web2c version check
shell: bash
run: |
cd ./source/Work/texk/web2c
./ctie --version || echo "ctie"
echo ""
./ctwill --version || echo "ctwill"
echo ""
./cweave --version || echo "cwaeve"
echo ""
./tie --version || echo "tie"
echo ""
./twill --version || echo "twill"
echo ""
./tex --version || echo "tex"
echo ""
./etex --version || echo "etex"
echo ""
./ptex --version || echo "ptex"
echo ""
./uptex --version || echo "uptex"
echo ""
./euptex --version || echo "euptex"
echo ""
./updvitype --version || echo "updvitype"
echo ""
./uppltotf --version || echo "uppltotf"
echo ""
./uptftopl --version || echo "uptftopl"
echo ""
./upbibtex --version || echo "upbibtex"
echo ""
./dvitype --version || echo "dvitype"
echo ""
./dvicopy --version || echo "dvicopy"
echo ""
./pltotf --version || echo "pltotf"
echo ""
./tftopl --version || echo "tftopl"
echo ""
./bibtex --version || echo "bibtex"
echo ""
./gftodvi --version || echo "gftodvi"
echo ""
./gftopk --version || echo "gftopk"
echo ""
./gftype --version || echo "gftype"
echo ""
./mft --version || echo "mft"
echo ""
./patgen --version || echo "patgen"
echo ""
./pktogf --version || echo "pktogf"
echo ""
./pktype --version || echo "pktype"
echo ""
./pooltype --version || echo "pooltype"
echo ""
./vftovp --version || echo "vftovp"
echo ""
./vptovf --version || echo "vptovf"
echo ""
./weave --version || echo "weave"
echo ""
./mpost --version || echo "mpost"
echo ""
./pmpost --version || echo "pmpost"
echo ""
./upmpost --version || echo "upmpost"
echo ""
./synctex help || echo "synctex"
env:
TEXMFCNF: "../../../texk/kpathsea"
- run: echo "⛄ This job's status is ${{ job.status }}."