diff --git a/.github/workflows/CICID.yml b/.github/workflows/CICID.yml index c606cb3..c2997fa 100644 --- a/.github/workflows/CICID.yml +++ b/.github/workflows/CICID.yml @@ -2,10 +2,15 @@ name: Auto test on: - push: - pull_request: - branches: - - master + # 手动触发事件 + workflow_dispatch: + inputs: + logLevel: + description: 'Log level' + required: true + default: 'warning' + tags: + description: 'Test Latex documents' jobs: work: diff --git a/.github/workflows/latex.yml b/.github/workflows/latex.yml new file mode 100644 index 0000000..e6a66fd --- /dev/null +++ b/.github/workflows/latex.yml @@ -0,0 +1,26 @@ +name: latex Windows CI/CD + +on: + push: + pull_request: + + +jobs: + windows-dev: + name: Windows CI/CD + timeout-minutes: 1440 + runs-on: self-hosted:windows + env: + UE4_ROOT: C:\workspace\UnrealEngine + VCVARS: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat + + steps: + - name: Checkout repository + uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - name: build + run: | + call build_latex.bat + shell: cmd \ No newline at end of file diff --git a/build_latex.bat b/build_latex.bat new file mode 100644 index 0000000..e4af925 --- /dev/null +++ b/build_latex.bat @@ -0,0 +1,7 @@ +@echo off + + +rem 编译危险场景生成论文 +pushd "%cd%\critical\undergraduate\" +"C:/software/texlive/texstudio\2023/bin/windows/xelatex.exe" -synctex=1 -interaction=nonstopmode "hutbthesis_main".tex +popd \ No newline at end of file