From 4e5bd8b2df86fba6fa19595cbad0dbc5dd66ef74 Mon Sep 17 00:00:00 2001 From: donghaiwang Date: Sun, 22 Nov 2026 08:36:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0high=E7=9A=84=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/high.yml | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/high.yml diff --git a/.github/workflows/high.yml b/.github/workflows/high.yml new file mode 100644 index 00000000..12a1bbb2 --- /dev/null +++ b/.github/workflows/high.yml @@ -0,0 +1,46 @@ + +name: High latex CI/CD + +on: + workflow_dispatch: + push: + branches: + - master + paths: + - 'high/undergraduate/**' + - '.github/workflows/high.yml' + pull_request: + branches: + - master + paths: + - 'high/undergraduate/**' + - '.github/workflows/high.yml' + +jobs: + work: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + # github action 默认签出只包含最后一次提交 + # 解决方案参考:https://stackoverflow.com/questions/62334460/git-history-in-a-github-action + ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 0 + + - name: Compile high LaTeX document + uses: xu-cheng/latex-action@v3 + with: + working_directory: high/undergraduate + root_file: hutbthesis_main.tex + texlive_version: 2023 + latexmk_use_xelatex: true + # 下载安装Times New Roman字体 + pre_compile: | + apk add msttcorefonts-installer fontconfig + update-ms-fonts + fc-cache -f + - uses: actions/upload-artifact@v4 + with: + name: high + path: | + high/undergraduate/hutbthesis_main.pdf