-
Notifications
You must be signed in to change notification settings - Fork 2
99 lines (94 loc) · 2.77 KB
/
compile.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
name: Build LaTeX documents
on:
push:
paths:
- '**.tex'
- '**.sty'
- '**.cls'
- '**/compile.yml'
workflow_dispatch:
jobs:
build-latex:
runs-on: ubuntu-latest
name: Compile LaTeX to PDF
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Install texlive
run: sudo apt-get update && sudo apt-get install -y texlive-latex-extra texlive-lang-european
- name: Compile LaTeX
run: .github/scripts/compile.sh
- name: Archive pdf:s
uses: actions/upload-artifact@v3
with:
name: pdfs
path: |
./*/*.pdf
- name: Archive texlive logs
uses: actions/upload-artifact@v3
with:
name: texlive-logs
path: |
./*/*.log
# We build a bunch of low-res png:s in order to compare them to the original ones.
# generate-pngs:
# runs-on: ubuntu-latest
# needs: build-latex
# name: Generate PNGs from PDFs
# steps:
# - name: Set up Git repository
# uses: actions/checkout@v2
# - name: Install poppler-utils
# run: sudo apt-get install -y poppler-utils
# - name: Fetch generated pdf:s
# uses: actions/download-artifact@v2
# with:
# name: pdfs
# - name: Generate png:s from pdf:s
# run: ./.github/scripts/img.sh
# - name: Archive png:s
# uses: actions/upload-artifact@v2
# with:
# name: pngs
# path: |
# **/*.pdf-*.png
# compare-pngs-tex:
# runs-on: ubuntu-latest
# needs: generate-pngs
# name: Compare PNGs to PNGs from original TeX-files
# steps:
# - name: Set up Git repository
# uses: actions/checkout@v2
# - name: Fetch generated png:s
# uses: actions/download-artifact@v2
# with:
# name: pngs
# - name: Compare png:s to original png:s
# run: ./.github/scripts/img_cmp_tex.sh
# - name: Archive diff png:s
# uses: actions/upload-artifact@v2
# with:
# name: diff-pngs-tex
# path: |
# **/*.diff.png
# compare-pngs-pdf:
# runs-on: ubuntu-latest
# needs: generate-pngs
# name: Compare PNGs to PNGs from original PDF-files
# steps:
# - name: Set up Git repository
# uses: actions/checkout@v2
# - name: Fetch generated png:s
# uses: actions/download-artifact@v2
# with:
# name: pngs
# - name: Compare png:s to original png:s
# run: ./.github/scripts/img_cmp_pdf.sh
# env:
# USE_ORIGINAL_PDFS: true
# - name: Archive diff png:s
# uses: actions/upload-artifact@v2
# with:
# name: diff-pngs-pdf
# path: |
# **/*.diff.png