Add luatex to automatic ci run

This commit is contained in:
Mészáros Gergely 2021-08-21 16:33:40 +02:00 committed by Gergely Meszaros
parent d1bd3bc2b6
commit ea66d23d6c

View File

@ -2,21 +2,34 @@ 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
- name: Compile LaTeX document
- if: ${{ matrix.engine == 'pdflatex' }}
name: Compile LaTeX document
uses: xu-cheng/latex-action@master
with:
root_file: |
thesis.tex
minted-integration.tex
latexmk_shell_escape: true
- if: ${{ matrix.engine == 'lualatex' }}
name: Compile LaTeX document
uses: xu-cheng/latex-action@master
with:
root_file: |
thesis.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
name: thesis-${{ matrix.engine }}
path: |
thesis.pdf
minted-integration.pdf