-
Notifications
You must be signed in to change notification settings - Fork 18
56 lines (46 loc) · 1.62 KB
/
Copy pathbuild.yml
File metadata and controls
56 lines (46 loc) · 1.62 KB
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
name: Build
on: [push, pull_request]
env:
# C.UTF-8 is always available without locale-gen and keeps LaTeX byte-clean.
LC_ALL: C.UTF-8
LANG: C.UTF-8
jobs:
build-publish-pdf:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
# System TeX: conda-forge texlive-core is engine-only, so a real LaTeX
# distribution comes from apt. ghostscript, ImageMagick 7, Pygments, cmake
# and ninja are provided by the pixi 'build' environment.
- name: Install system TeX
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
texlive-latex-base \
texlive-latex-extra \
texlive-latex-recommended \
texlive-fonts-recommended \
dvipng \
tex4ht
sudo apt-get clean
- name: Set up pixi
uses: prefix-dev/setup-pixi@v0.9.6
with:
environments: build
cache: true
- name: Build the Software Guide
run: pixi run build
- name: Collect PDFs
run: |
cp build/ITKSoftwareGuide-build/SoftwareGuide/Latex/ITKSoftwareGuide-Book1.pdf InsightSoftwareGuide-Book1.pdf
cp build/ITKSoftwareGuide-build/SoftwareGuide/Latex/ITKSoftwareGuide-Book2.pdf InsightSoftwareGuide-Book2.pdf
- name: Publish ITK Software Guide Book 1 artifact
uses: actions/upload-artifact@v4
with:
path: InsightSoftwareGuide-Book1.pdf
name: InsightSoftwareGuide-Book1.pdf
- name: Publish ITK Software Guide Book 2 artifact
uses: actions/upload-artifact@v4
with:
path: InsightSoftwareGuide-Book2.pdf
name: InsightSoftwareGuide-Book2.pdf