Skip to content
Snippets Groups Projects
Unverified Commit 1e3b0943 authored by atxy-blip's avatar atxy-blip Committed by GitHub
Browse files

Merge pull request #12 from linyinfeng/ci

feat: 使用 matrix 实现 lualatex 测试
parents be93f235 b13a5db6
No related branches found
No related tags found
No related merge requests found
name: Build LaTeX document using LuaLaTeX
on: [push, pull_request]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile to PDF
uses: HermitSun/latex-action@v3
with:
root_file: njuthesis.tex
latexmk_use_lualatex: true
args: '-bibtex'
- name: Upload PDF
uses: actions/upload-artifact@v2
with:
name: PDF
path: njuthesis.pdf
......@@ -3,6 +3,9 @@ on: [push, pull_request]
jobs:
build_latex:
runs-on: ubuntu-latest
strategy:
matrix:
latex: [xelatex, lualatex]
steps:
- name: Set up Git repository
uses: actions/checkout@v2
......@@ -11,11 +14,11 @@ jobs:
uses: HermitSun/latex-action@v3
with:
root_file: njuthesis.tex
latexmk_use_xelatex: true
latexmk_use_${{ matrix.latex }}: true
args: '-bibtex'
- name: Upload PDF
uses: actions/upload-artifact@v2
with:
name: PDF
name: PDF_${{ matrix.latex }}
path: njuthesis.pdf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment