-
Notifications
You must be signed in to change notification settings - Fork 358
/
user_manual.yml
93 lines (82 loc) · 2.04 KB
/
user_manual.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
name: User Manual
on:
push:
branches:
- master
- ci-*
- release*
paths: &trigger_path_list
- 'doc/user-manual/**'
- '.github/workflows/user_manual.yml'
pull_request:
paths: *trigger_path_list
jobs:
build:
if: |
!contains(github.event.head_commit.message, '[skip ci]')
&& !contains(github.event.head_commit.message, '[ci skip]')
&& !contains(github.event.head_commit.message, '[github skip]')
&& !contains(github.event.head_commit.message, '[skip github]')
runs-on: ubuntu-24.04
env:
python-version: '3.12'
steps:
- uses: actions/checkout@v4
- name: Install imagemagick (convert)
run: |
sudo apt-get update
sudo apt-get install imagemagick
- name: Set up Python ${{ env.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.python-version }}
- name: Install dependencies
run: |
pip install -r doc/user-manual/requirements.txt
- name: Setup TeX Live
uses: teatimeguest/setup-texlive-action@v3
with:
packages: >-
scheme-basic
anyfontsize
bbm
bbm-macros
booktabs
capt-of
cmap
colortbl
dvipng
ellipse
etoolbox
fancyvrb
float
fncychap
framed
keystroke
latexmk
mathtools
needspace
parskip
pict2e
psnfss
stmaryrd
tabulary
tex-gyre
titlesec
upquote
varwidth
wrapfig
xcolor
zapfchan
- name: Build User Manual in HTML
run: |
export PATH=$HOME/texlive/bin/x86_64-linux:$PATH
make user-manual-html
- name: Build User Manual in PDF
run: |
export PATH=$HOME/texlive/bin/x86_64-linux:$PATH
make user-manual-pdf
- uses: actions/upload-artifact@v4
with:
name: user-manual-pdf
path: doc/user-manual.pdf