elteikthesis/.github/workflows/ci.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

name: Build LaTeX document
2023-02-01 22:31:59 +01:00
on: [push, pull_request]
jobs:
build_latex:
2021-08-21 16:33:40 +02:00
strategy:
matrix:
2021-08-21 16:33:40 +02:00
engine: [pdflatex, lualatex]
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
2021-08-21 16:33:40 +02:00
- 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
2021-08-21 16:33:40 +02:00
- if: ${{ matrix.engine == 'lualatex' }}
name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
2021-08-21 16:33:40 +02:00
with:
root_file: |
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
- name: Upload the compiled pdf
uses: actions/upload-artifact@v3
with:
2021-08-21 16:33:40 +02:00
name: thesis-${{ matrix.engine }}
path: |
elteikthesis_hu.pdf
elteikthesis_en.pdf
elteikthesis_minted.pdf
if-no-files-found: error