generated from mcserep/elteiktdk
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (36 loc) · 1.01 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
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@v4
- if: ${{ matrix.engine == 'pdflatex' }}
name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: |
elteiktdk_en.tex
presentation.tex
latexmk_shell_escape: true
- if: ${{ matrix.engine == 'lualatex' }}
name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: |
elteiktdk_en.tex
presentation.tex
latexmk_shell_escape: true
latexmk_use_lualatex: true
- name: Upload the compiled pdf
uses: actions/upload-artifact@v4
with:
name: tdk-${{ matrix.engine }}
path: |
elteiktdk_en.pdf
presentation.pdf
if-no-files-found: error