-
Notifications
You must be signed in to change notification settings - Fork 95
121 lines (121 loc) · 3.04 KB
/
CI.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
112
113
114
115
116
117
118
119
120
121
name: CI
on:
pull_request:
branches:
- "*"
push:
branches:
- "*"
jobs:
build-html:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.7
- name: Install Python Dependencies
run: |
pip install -r source/requirements.txt
- name: Install Graphviz
run: |
sudo apt update
sudo apt install -y graphviz
- name: Build HTML
run: |
make html
- name: Archive HTML
uses: actions/upload-artifact@v2
with:
name: gm0-html
path: build/html/
build-pdf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.7
- name: Install Python Dependencies
run: |
pip install -r source/requirements.txt
- name: Install LaTeX
run: |
sudo apt update
sudo apt install -y texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra latexmk texlive-lang-greek texlive-luatex texlive-xetex texlive-fonts-extra dvipng librsvg2-bin graphviz
- name: Build PDF
run: |
make latexpdf
- name: Archive PDF
uses: actions/upload-artifact@v2
with:
name: gm0-pdf
path: build/latex/GameManual0.pdf
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.7
- name: Install Dependencies
run: |
pip install -r source/requirements.txt
- name: Check Links (Diff)
run: |
git fetch origin main
make linkcheckdiff
- name: Archive Linkcheck Failure
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: linkcheck-output.txt
path: build/linkcheck/output.txt
check-linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.7
- name: Install Dependencies
run: |
pip install -r source/requirements.txt
- name: Check Lint
run: |
make lint
check-spelling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: misspell
uses: reviewdog/action-misspell@v1
with:
locale: "US"
reporter: "github-check"
check-redirects:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout main
run: |
git fetch origin main --depth=1
- uses: actions/setup-python@v3
with:
python-version: 3.7
- name: Install Dependencies
run: |
pip install -r source/requirements.txt
- name: Check redirects
run: |
make rediraffecheckdiff
check-unicode-characters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout main
run: |
git fetch origin main --depth=1
- name: Check Unicode characters
run: |
./scripts/check-unicode-characters.sh