elteikthesis/.github/workflows/ci.yml

40 lines
1.1 KiB
YAML

name: Build LaTeX document
on: [push]
jobs:
build_latex:
strategy:
matrix:
engine: [pdflatex, lualatex]
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- if: ${{ matrix.engine == 'pdflatex' }}
name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: |
thesis_hu.tex
thesis_en.tex
minted-integration.tex
latexmk_shell_escape: true
- if: ${{ matrix.engine == 'lualatex' }}
name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: |
thesis_hu.tex
thesis_en.tex
minted-integration.tex
latexmk_shell_escape: true
latexmk_use_lualatex: true
- name: Upload the compiled pdf
uses: actions/upload-artifact@v2.2.4
with:
name: thesis-${{ matrix.engine }}
path: |
thesis_hu.pdf
thesis_en.pdf
minted-integration.pdf
if-no-files-found: error