diff --git a/.github/workflows/build-luatex.yml b/.github/workflows/build-luatex.yml deleted file mode 100644 index a6db2f6a6a66acdb55af155f3d9eefccba3910d0..0000000000000000000000000000000000000000 --- a/.github/workflows/build-luatex.yml +++ /dev/null @@ -1,21 +0,0 @@ -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 diff --git a/.github/workflows/build-xetex.yml b/.github/workflows/build.yml similarity index 74% rename from .github/workflows/build-xetex.yml rename to .github/workflows/build.yml index 95ab4910202dc954d6e88e21f67a090c0760caa8..123d40fcb16039b6737ef862a83f9cf90ba70b4c 100644 --- a/.github/workflows/build-xetex.yml +++ b/.github/workflows/build.yml @@ -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