-
Notifications
You must be signed in to change notification settings - Fork 15
39 lines (39 loc) · 1.14 KB
/
ci.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
name: Build LaTeX document
on: [push, pull_request]
jobs:
build_latex:
strategy:
matrix:
engine: [pdflatex, lualatex]
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- if: ${{ matrix.engine == 'pdflatex' }}
name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: |
elteikthesis_hu.tex
elteikthesis_en.tex
elteikthesis_minted.tex
latexmk_shell_escape: true
- if: ${{ matrix.engine == 'lualatex' }}
name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: |
elteikthesis_hu.tex
elteikthesis_en.tex
elteikthesis_minted.tex
latexmk_shell_escape: true
latexmk_use_lualatex: true
- name: Upload the compiled pdf
uses: actions/upload-artifact@v3
with:
name: thesis-${{ matrix.engine }}
path: |
elteikthesis_hu.pdf
elteikthesis_en.pdf
elteikthesis_minted.pdf
if-no-files-found: error