forked from rrthomas/hpmor
-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (47 loc) · 1.33 KB
/
make-pdf-6-parallel.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
name: Make PDF 6 parallel
# no apt update included
on:
workflow_dispatch:
jobs:
make:
runs-on: ubuntu-24.04
strategy:
matrix:
part: [hpmor-1, hpmor-2, hpmor-3, hpmor-4, hpmor-5, hpmor-6]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 1 # 0 if you want to push to repo
- name: Cache LaTeX files
uses: actions/cache@v4
with:
path: |
chapters/*.aux
hpmor*.aux
hpmor*.fdb_latexmk
hpmor*.fls
hpmor*.out
hpmor*.pdf
hpmor*.toc
hpmor*.xdv
key: latex-build-files
- name: Install PDF requirements
run: |
# not: to save time
# sudo apt-get update > /dev/null
sh scripts/install_requirements_pdf.sh > /dev/null
- name: Make PDF
run: latexmk ${{ matrix.part }} > /dev/null
- name: Publish PDF to release
uses: softprops/action-gh-release@v2
with:
tag_name: WorkInProgress
prerelease: true
files: ${{ matrix.part }}.pdf
- name: Upload log as artifact
uses: actions/upload-artifact@v4
with:
name: "${{ matrix.part }}.log"
path: "${{ matrix.part }}.log"