-
Notifications
You must be signed in to change notification settings - Fork 64
105 lines (103 loc) · 3 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
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@v2
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
with:
run: .github/ci/build_test_variants.sh -halt-on-error -time -quiet -xelatex
name: build test variants with XeLaTeX
- uses: xu-cheng/texlive-action/full@v1
with:
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@v2
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@v2
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
with:
run: .github/ci/build_test_variants.sh -halt-on-error -time -quiet -lualatex
name: build test variants with LuaLaTeX
- uses: xu-cheng/texlive-action/full@v1
with:
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@v2
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@v2
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
with:
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@v2
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@v2
name: checkout code
- uses: xu-cheng/texlive-action/full@v1
with:
run: |
apk add diffutils findutils git make
git config --global --add safe.directory /github/workspace
make format-dev
- name: check if generated files are of latest version
run: |
git diff --exit-code