-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (50 loc) · 1.48 KB
/
status_check.yaml
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
name: status check compile
"on":
pull_request:
types: [opened, synchronize]
workflow_call:
jobs:
build-pdfs:
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/checkout@v3
# https://github.com/actions/cache/issues/342
- name: 💾 Caching
uses: actions/cache@v3
with:
path: |
**/build
**/sub_*
key: ${{ runner.os }}-pengu-cache-doc-${{ github.run_id }}
restore-keys: ${{ runner.os }}-pengu-cache-doc-
- name: 📄 Compile the Documentation
uses: xu-cheng/latex-action@v2
with:
pre_compile: "tlmgr remove --force tikzpingus"
working_directory: doc
root_file: tikzpingus-doc.tex
- name: 📄 Compile Examples
uses: xu-cheng/latex-action@v2
with:
# remove ctan package to insure local
pre_compile: "tlmgr remove --force tikzpingus"
working_directory: examples
root_file: |
showcase.tex
minimal.tex
cloak.tex
spl.tex
hey-pingu.tex
- name: ⬆️ Upload doc artifacts
uses: actions/upload-artifact@v3
with:
name: doc-output
path: |
doc/build/*.pdf
doc/build/tikzpingus-doc.*
- name: ⬆️ Upload examples artifacts
uses: actions/upload-artifact@v3
with:
name: examples-output
path: examples/build/*.pdf