forked from TJ-CSCCG/tongji-undergrad-thesis
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (25 loc) · 809 Bytes
/
build.yml
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
31
32
name: Build the project
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup TeX Live
uses: teatimeguest/setup-texlive-action@v3
with:
packages: scheme-full
- run: DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Hans~~~und-HANS~0.0.1.0
- run: DISM.exe /Online /Add-Capability /CapabilityName:Language.Fonts.Hant~~~und-HANT~0.0.1.0
# 查看 中文字体
- run: fc-list :lang=zh-cn
- run: latexmk -pdf -pdflatex=xelatex main.tex
- run: biber main
- run: latexmk -f -pdf -pdflatex=xelatex -interaction=nonstopmode main.tex
- run: latexmk -c
- uses: actions/upload-artifact@v3
with:
name: thesis pdf
path: main.pdf