-
Notifications
You must be signed in to change notification settings - Fork 50
59 lines (51 loc) · 1.72 KB
/
verify-compile.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Verify and sync
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
container: texlive/texlive:${{ matrix.texlive }}
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Meta-data normalization
run: python test/update-dist.py --dev --sha ${GITHUB_SHA}
- name: run texlive docker container
run: make doc test
- name: Publish PDF as actions assets
uses: actions/upload-artifact@v3
with:
name: Example-PDFs-texlive-${{ matrix.texlive }}
path: |
sustechthesis.pdf
public-test/*.pdf
sync:
runs-on: ubuntu-latest
name: Sync to other git service
if: github.repository_owner == 'SUSTech-CRA'
timeout-minutes: 10
concurrency:
group: sync-job
cancel-in-progress: true
# needs: build_latex
steps:
- name: Push to sustech-git
run: |
tmp_dir=$(mktemp -d -t ci-XXXXXXXXXX)
echo $tmp_dir
cd $tmp_dir
git clone --bare "${GITHUB_REPO_URL}" this_repo
cd this_repo
git push --force --mirror "https://${USER}:${PERSONAL_TOKEN}@${REMOTE_REPO_URL}"
env:
USER: project_160_bot
PERSONAL_TOKEN: ${{ secrets.GITLAB_PERSONAL_TOKEN }}
GITHUB_REPO_URL: https://github.com/SUSTech-CRA/sustech-master-thesis.git
REMOTE_REPO_URL: "mirrors.sustech.edu.cn/git/liziwl/sustech-master-thesis.git"