-
Notifications
You must be signed in to change notification settings - Fork 62
30 lines (27 loc) · 933 Bytes
/
compile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Build LaTeX document
on: [push, pull_request]
jobs:
build_latex:
runs-on: ubuntu-latest
strategy:
matrix:
texlive: [latest, TL2022-historic, TL2021-historic, TL2020-historic]
# 多版本 TexLive 兼容性测试
# 版本号选自:https://hub.docker.com/r/texlive/texlive/tags
steps:
- name: Set up Git repository
uses: actions/checkout@v4
with:
submodules: true
- name: Tree All project
run: sudo apt install tree;tree
- name: Build pdf
run: |
docker run --rm -v "$(pwd)":/docs ghcr.io/liziwl/texlive-full-with-fonts:${{ matrix.texlive }} /bin/bash -c "make cleanall && make thesis slide"
- name: Publish PDF as actions assets
uses: actions/upload-artifact@v4
with:
name: Example-PDFs-texlive-${{ matrix.texlive }}
path: |
main.pdf
slides.pdf