-
Notifications
You must be signed in to change notification settings - Fork 218
108 lines (105 loc) · 3.99 KB
/
main.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
name: build
on: push
env:
CTAN_URL: https://mirrors.rit.edu/CTAN
TL_PACKAGES: biber biblatex biblatex-gb7714-2015 bibtex bigfoot caption chinese-jfm ctex fancyhdr footmisc gbt7714 kantlipsum l3build latexmk libertinus-fonts lm-math lualatex-math luatex85 natbib ntheorem physics preview psnfss siunitx standalone symbol tex-gyre tex-gyre-math unicode-math xits xstring zhlipsum
TESTS: |
latexmk -halt-on-error -time -pdfxe -jobname=test-xetex test.tex
latexmk -halt-on-error -time -pdflua -jobname=test-luatex test.tex
latexmk -halt-on-error -time -pdfxe -jobname=test-en-xetex test-en.tex
latexmk -halt-on-error -time -pdflua -jobname=test-en-luatex test-en.tex
latexmk -halt-on-error -time -pdfxe -jobname=test-biblatex-xetex test-biblatex.tex
EXAMPLES: |
latexmk -halt-on-error -time -pdfxe -jobname=main-xetex main.tex
latexmk -halt-on-error -time -pdflua -jobname=main-luatex main.tex
jobs:
build-ubuntu:
runs-on: ubuntu-latest
env:
SET_PATH: export PATH=/tmp/texlive/bin/x86_64-linux:$PATH
steps:
- uses: actions/checkout@v3
- name: Install TeX Live
run: |
${{ env.SET_PATH }}
wget ${{ env.CTAN_URL }}/systems/texlive/tlnet/install-tl-unx.tar.gz
tar -xzf install-tl-unx.tar.gz
cd install-tl-20* && ./install-tl --profile ../.github/workflows/texlive.profile
tlmgr install ${{ env.TL_PACKAGES }}
tlmgr update --self --all --no-auto-install --repository=${{ env.CTAN_URL }}/systems/texlive/tlnet/
- name: Check fduthesis
run: |
${{ env.SET_PATH }}
l3build check -q -H
- name: Test fduthesis
run: |
${{ env.SET_PATH }}
cd test && cp ../build/unpacked/{*.cls,*.def} .
${{ env.TESTS }}
- name: Build examples
run: |
${{ env.SET_PATH }}
./install-unix.sh
cd thesis
${{ env.EXAMPLES }}
build-macos:
runs-on: macos-latest
env:
SET_PATH: export PATH=/tmp/texlive/bin/universal-darwin:$PATH
steps:
- uses: actions/checkout@v3
- name: Install TeX Live
run: |
${{ env.SET_PATH }}
curl -O ${{ env.CTAN_URL }}/systems/texlive/tlnet/install-tl-unx.tar.gz
tar -xzf install-tl-unx.tar.gz
cd install-tl-20* && ./install-tl --profile ../.github/workflows/texlive.profile
tlmgr install ${{ env.TL_PACKAGES }}
tlmgr update --self --all --no-auto-install --repository=${{ env.CTAN_URL }}/systems/texlive/tlnet/
- name: Check fduthesis
run: |
${{ env.SET_PATH }}
l3build check -q -H
- name: Test fduthesis
run: |
${{ env.SET_PATH }}
cd test && cp ../build/unpacked/{*.cls,*.def} .
${{ env.TESTS }}
- name: Build examples
run: |
${{ env.SET_PATH }}
./install-unix.sh
cd thesis
${{ env.EXAMPLES }}
build-windows:
runs-on: windows-latest
env:
SET_PATH: ${env:PATH} = "${{ github.workspace }}\tmp\texlive\bin\windows;" + ${env:PATH}
steps:
- uses: actions/checkout@v3
- name: Install TeX Live
run: |
${{ env.SET_PATH }}
Invoke-WebRequest -Uri ${{ env.CTAN_URL }}/systems/texlive/tlnet/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-win.profile
tlmgr install ${{ env.TL_PACKAGES }}
tlmgr update --self --all --no-auto-install --repository=${{ env.CTAN_URL }}/systems/texlive/tlnet/
- name: Check fduthesis
run: |
${{ env.SET_PATH }}
l3build unpack -q
- name: Test fduthesis
run: |
${{ env.SET_PATH }}
Set-Location test
Copy-Item "..\build\unpacked\*.cls" .
Copy-Item "..\build\unpacked\*.def" .
${{ env.TESTS }}
- name: Build examples
run: |
${{ env.SET_PATH }}
.\install-win.bat
Set-Location thesis
${{ env.EXAMPLES }}