Skip to content

Commit 6512844

Browse files
committed
Add CI job to build the PDF version of the document.
1 parent b7ab5ab commit 6512844

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/book.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,38 @@ jobs:
3333
name: book
3434
path: book
3535

36+
build-pdf:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Install dependencies
40+
run: |
41+
sudo apt-get update
42+
sudo apt-get install -y \
43+
gh \
44+
texlive-latex-recommended \
45+
texlive-latex-extra \
46+
texlive-fonts-recommended \
47+
texlive-fonts-extra \
48+
texlive-xetex \
49+
latexmk \
50+
lmodern \
51+
texlive-science
52+
53+
- name: Install pandoc
54+
uses: pandoc/actions/setup@v1
55+
56+
- name: Checkout source
57+
uses: actions/checkout@v4
58+
59+
- name: Build PDF book
60+
run: make pdf
61+
62+
- name: Upload pdf book artifact
63+
uses: actions/upload-artifact@v4
64+
with:
65+
name: cheri-c-programming.pdf
66+
path: book
67+
3668
deploy:
3769
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
3870
needs: build-mdbook

0 commit comments

Comments
 (0)