2020-02-27 17:15:34 +01:00
|
|
|
name: Build LaTeX document
|
2023-02-01 22:31:59 +01:00
|
|
|
on: [push, pull_request]
|
2020-02-27 17:15:34 +01:00
|
|
|
jobs:
|
|
|
|
build_latex:
|
2021-08-21 16:33:40 +02:00
|
|
|
strategy:
|
2021-09-20 15:39:24 +02:00
|
|
|
matrix:
|
2021-08-21 16:33:40 +02:00
|
|
|
engine: [pdflatex, lualatex]
|
2020-02-27 17:15:34 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up Git repository
|
2023-01-31 11:43:25 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-08-21 16:33:40 +02:00
|
|
|
- if: ${{ matrix.engine == 'pdflatex' }}
|
|
|
|
name: Compile LaTeX document
|
2021-09-20 15:39:24 +02:00
|
|
|
uses: xu-cheng/latex-action@v2
|
2020-02-27 17:15:34 +01:00
|
|
|
with:
|
2021-08-21 14:14:17 +02:00
|
|
|
root_file: |
|
2022-04-30 14:16:03 +02:00
|
|
|
elteikthesis_hu.tex
|
|
|
|
elteikthesis_en.tex
|
|
|
|
elteikthesis_minted.tex
|
2021-07-14 21:20:37 +02:00
|
|
|
latexmk_shell_escape: true
|
2021-08-21 16:33:40 +02:00
|
|
|
- if: ${{ matrix.engine == 'lualatex' }}
|
|
|
|
name: Compile LaTeX document
|
2021-09-20 15:39:24 +02:00
|
|
|
uses: xu-cheng/latex-action@v2
|
2021-08-21 16:33:40 +02:00
|
|
|
with:
|
|
|
|
root_file: |
|
2022-04-30 14:16:03 +02:00
|
|
|
elteikthesis_hu.tex
|
|
|
|
elteikthesis_en.tex
|
|
|
|
elteikthesis_minted.tex
|
2021-08-21 16:33:40 +02:00
|
|
|
latexmk_shell_escape: true
|
|
|
|
latexmk_use_lualatex: true
|
2021-07-14 21:20:37 +02:00
|
|
|
- name: Upload the compiled pdf
|
2023-01-31 11:43:25 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-07-14 21:20:37 +02:00
|
|
|
with:
|
2021-08-21 16:33:40 +02:00
|
|
|
name: thesis-${{ matrix.engine }}
|
2021-07-14 21:20:37 +02:00
|
|
|
path: |
|
2022-04-30 14:16:03 +02:00
|
|
|
elteikthesis_hu.pdf
|
|
|
|
elteikthesis_en.pdf
|
|
|
|
elteikthesis_minted.pdf
|
2021-07-14 21:20:37 +02:00
|
|
|
if-no-files-found: error
|