-
Notifications
You must be signed in to change notification settings - Fork 0
171 lines (167 loc) · 7.19 KB
/
texlive.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
# Based on https://github.com/CTeX-org/ctex-kit/blob/master/.github/workflows/test.yml
name: Test in TeX Live
on: [push, pull_request]
env:
TLCurrent: https://mirrors.rit.edu/CTAN/systems/texlive/tlnet
TLRelease: 2024
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install TeX Live
run: |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/x86_64-linux:$PATH
wget ${{env.TLCurrent}}/install-tl-unx.tar.gz
tar -xzf install-tl-unx.tar.gz
cd install-tl-20*
sudo ./install-tl --profile ../.github/workflows/texlive.profile --repository=${{env.TLCurrent}}
sudo env "PATH=$PATH" tlmgr install lualibs luatex
sudo env "PATH=$PATH" tlmgr update --self --all --no-auto-install --repository=${{env.TLCurrent}}
- name: Run tfpbuild
run: |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/x86_64-linux:$PATH
texlua tfpbuild.lua check
- name: Test texfindpkg query
run: |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/x86_64-linux:$PATH
texlua texfindpkg.lua query array.sty
echo --------------------------------
texlua texfindpkg.lua query \\fakeverb
echo --------------------------------
texlua texfindpkg.lua query {frame}
echo --------------------------------
texlua texfindpkg.lua query foobar
echo --------------------------------
texlua texfindpkg.lua query foobar.sty
echo --------------------------------
texlua texfindpkg.lua query \\foobar
echo --------------------------------
texlua texfindpkg.lua query {foobar}
- name: Test texfindpkg install
run: |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/x86_64-linux:$PATH
texlua texfindpkg.lua install array.sty
echo --------------------------------
texlua texfindpkg.lua install \\fakeverb
echo --------------------------------
texlua texfindpkg.lua install {frame}
echo --------------------------------
texlua texfindpkg.lua install foobar
echo --------------------------------
texlua texfindpkg.lua install foobar.sty
echo --------------------------------
texlua texfindpkg.lua install \\foobar
echo --------------------------------
texlua texfindpkg.lua install {foobar}
- name: Test man page
run: |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/x86_64-linux:$PATH
man -l texfindpkg.1
sudo apt-get update
sudo apt-get install ghostscript
groff -man -t -rS11 texfindpkg.1 | ps2pdf -sPAPERSIZE=a4 - texfindpkg.man1.pdf
- name: Upload pdf file
uses: actions/upload-artifact@v3
with:
name: texfindpkg-manpage
path: |
*.pdf
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install TeX Live
run: |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/universal-darwin:$PATH
curl -O ${{env.TLCurrent}}/install-tl-unx.tar.gz
tar -xzf install-tl-unx.tar.gz
cd install-tl-20*
sudo ./install-tl --profile ../.github/workflows/texlive.profile --repository=${{env.TLCurrent}}
sudo env "PATH=$PATH" tlmgr install lualibs luatex
sudo env "PATH=$PATH" tlmgr update --self --all --no-auto-install --repository=${{env.TLCurrent}}
- name: Run tfpbuild
run: |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/universal-darwin:$PATH
texlua tfpbuild.lua check
- name: Test texfindpkg query
run: |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/universal-darwin:$PATH
texlua texfindpkg.lua query array.sty
echo --------------------------------
texlua texfindpkg.lua query \\fakeverb
echo --------------------------------
texlua texfindpkg.lua query {frame}
echo --------------------------------
texlua texfindpkg.lua query foobar
echo --------------------------------
texlua texfindpkg.lua query foobar.sty
echo --------------------------------
texlua texfindpkg.lua query \\foobar
echo --------------------------------
texlua texfindpkg.lua query {foobar}
- name: Test texfindpkg install
run: |
export PATH=/usr/local/texlive/${{env.TLRelease}}/bin/universal-darwin:$PATH
texlua texfindpkg.lua install array.sty
echo --------------------------------
texlua texfindpkg.lua install \\fakeverb
echo --------------------------------
texlua texfindpkg.lua install {frame}
echo --------------------------------
texlua texfindpkg.lua install foobar
echo --------------------------------
texlua texfindpkg.lua install foobar.sty
echo --------------------------------
texlua texfindpkg.lua install \\foobar
echo --------------------------------
texlua texfindpkg.lua install {foobar}
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install TeX Live
run: |
${env:PATH} = "C:\texlive\${{env.TLRelease}}\bin\windows;" + ${env:PATH}
Invoke-WebRequest -Uri ${{env.TLCurrent}}/install-tl.zip -OutFile install-tl.zip
Expand-Archive install-tl.zip -DestinationPath .
Set-Location install-tl-*
.\install-tl-windows --no-gui --profile ..\.github\workflows\texlive.profile --repository=${{env.TLCurrent}}
tlmgr install lualibs luatex
tlmgr update --self --all --no-auto-install --repository=${{env.TLCurrent}}
- name: Run tfpbuild
run: |
${env:PATH} = "C:\texlive\${{env.TLRelease}}\bin\windows;" + ${env:PATH}
texlua tfpbuild.lua check
- name: Test texfindpkg query
run: |
${env:PATH} = "C:\texlive\${{env.TLRelease}}\bin\windows;" + ${env:PATH}
texlua texfindpkg.lua query array.sty
echo --------------------------------
texlua texfindpkg.lua query \fakeverb
echo --------------------------------
texlua texfindpkg.lua query `{frame`}
echo --------------------------------
texlua texfindpkg.lua query foobar
echo --------------------------------
texlua texfindpkg.lua query foobar.sty
echo --------------------------------
texlua texfindpkg.lua query \foobar
echo --------------------------------
texlua texfindpkg.lua query `{foobar`}
- name: Test texfindpkg install
run: |
${env:PATH} = "C:\texlive\${{env.TLRelease}}\bin\windows;" + ${env:PATH}
texlua texfindpkg.lua install array.sty
echo --------------------------------
texlua texfindpkg.lua install \fakeverb
echo --------------------------------
texlua texfindpkg.lua install `{frame`}
echo --------------------------------
texlua texfindpkg.lua install foobar
echo --------------------------------
texlua texfindpkg.lua install foobar.sty
echo --------------------------------
texlua texfindpkg.lua install \foobar
echo --------------------------------
texlua texfindpkg.lua install `{foobar`}