-
Notifications
You must be signed in to change notification settings - Fork 65
111 lines (109 loc) · 3.13 KB
/
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
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
on:
push:
branches:
- main
- develop
paths:
- '**'
- '!contrib/**'
pull_request:
branches:
- main
- develop
paths:
- '**'
- '!contrib/**'
name: Build
jobs:
build-xelatex:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: .github/ci/build_test_variants.sh -halt-on-error -time -quiet -xelatex
name: build test variants with XeLaTeX
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: .github/ci/gen_cover.sh -halt-on-error -time -xelatex
name: build cover with XeLaTeX
- run: cat build/build-*.log
name: display build log
if: ${{ failure() || success() }}
- uses: actions/upload-artifact@v3
with:
path: |
build/build-*.pdf
build/cover.pdf
name: build-xelatex
name: upload build artifacts
build-lualatex:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: .github/ci/build_test_variants.sh -halt-on-error -time -quiet -lualatex
name: build test variants with LuaLaTeX
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: .github/ci/gen_cover.sh -halt-on-error -time -quiet -lualatex
name: build cover with LuaLaTeX
- run: cat build/*.log
name: display build log
if: ${{ failure() || success() }}
- uses: actions/upload-artifact@v3
with:
path: |
build/build-*.pdf
build/cover.pdf
name: build-lualatex
name: upload build artifacts
build-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: |
export diffexe="diff -U 3"
apk add zip diffutils
tlmgr update --self
tlmgr update l3build
make build-dev
name: build package with l3build
- name: check if generated files are of latest version
run: |
git diff --exit-code
- uses: actions/upload-artifact@v3
with:
path: |
src/build/distrib/tds/doc
src/build/distrib/tds/source
src/build/distrib/tds/tex
src/build/distrib/tds/sjtubeamer-online.zip
name: sjtubeamer.tds
name: upload build artifacts
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: xu-cheng/texlive-action@v2
with:
scheme: full
run: |
apk add diffutils findutils git make
git config --global --add safe.directory /home/runner/work/SJTUBeamer/SJTUBeamer
make format-dev
- name: check if generated files are of latest version
run: |
git diff --exit-code