Skip to content

对于研究生论文增添分类号、密级、学号的自动同步 #71

对于研究生论文增添分类号、密级、学号的自动同步

对于研究生论文增添分类号、密级、学号的自动同步 #71

Workflow file for this run

name: Build Tests
on: pull_request
jobs:
build_all_without_diff:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v1
- name: Current version
run: echo $GITHUB_REF
- name: Download Fonts
run: setup_lipsum=n ./script/ci/setup.sh
- name: Build Grad in Docker
run: docker run --mount src=$GITHUB_WORKSPACE/,target=/zjuthesis,type=bind adnrv/texlive:full /zjuthesis/script/ci/github-action/build_grad.sh
- name: Build Undergrad in Docker
run: docker run --mount src=$GITHUB_WORKSPACE/,target=/zjuthesis,type=bind adnrv/texlive:full /zjuthesis/script/ci/github-action/build_undergrad.sh
- name: Upload Output Files
if: ${{ always() }}
uses: actions/upload-artifact@v1
with:
name: dist-all
path: dist
- name: Upload Log Files
if: ${{ always() }}
uses: actions/upload-artifact@v1
with:
name: out-ci-all
path: out-ci
build_undergrad:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v1
- name: Current version
run: echo $GITHUB_REF
- name: Download Fonts
run: ./script/ci/setup.sh
- name: Build Test in Docker
run: docker run --mount src=$GITHUB_WORKSPACE/,target=/zjuthesis,type=bind adnrv/texlive:full /zjuthesis/script/ci/github-action/build_undergrad.sh
- name: Upload Output Files
if: ${{ always() }}
uses: actions/upload-artifact@v1
with:
name: dist-undergrad
path: dist
- name: Upload Log Files
if: ${{ always() }}
uses: actions/upload-artifact@v1
with:
name: out-ci-undergrad
path: out-ci
build_grad:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v1
- name: Current version
run: echo $GITHUB_REF
- name: Download Fonts
run: ./script/ci/setup.sh
- name: Build Test in Docker
run: docker run --mount src=$GITHUB_WORKSPACE/,target=/zjuthesis,type=bind adnrv/texlive:full /zjuthesis/script/ci/github-action/build_grad.sh
- name: Upload Output Files
if: ${{ always() }}
uses: actions/upload-artifact@v1
with:
name: dist-grad
path: dist
- name: Upload Log Files
if: ${{ always() }}
uses: actions/upload-artifact@v1
with:
name: out-ci-grad
path: out-ci
diff_pdf:
runs-on: ubuntu-latest
needs: [build_grad, build_undergrad]
steps:
- name: Checkout Repo
uses: actions/checkout@v1
- name: Current version
run: echo $GITHUB_REF
- name: Download Artifacts
uses: actions/download-artifact@v2
- name: Move Artifacts
run: |
mkdir -p dist
mv dist-grad/*.pdf dist/
mv dist-undergrad/*.pdf dist/
- name: PDF Diff
run: bash script/ci/pdf-diff/diff_report.sh
- name: Upload PDF Diff Files
if: ${{ always() }}
uses: actions/upload-artifact@v1
with:
name: pdf-diff
path: diff