Skip to content

Commit

Permalink
Caching of make-pdf-all-serial.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Apr 3, 2024
1 parent 1853838 commit f0db819
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/make-pdf-all-serial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,40 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
- name: checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 1 # 0 if you want to push to repo

- name: Install requirements
- name: caching 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: tex-cache

- name: install requirements
run: |
sudo apt update > /dev/null
sh scripts/install_requirements_pdf.sh > /dev/null
- name: Print versions
- name: print versions
run: |
cat /etc/os-release
xelatex -v
latexmk -v
# pandoc -v
python3 --version
- name: Make PDFs
- name: make PDFs
run: latexmk hpmor-1 hpmor-2 hpmor-3 hpmor-4 hpmor-5 hpmor-6 hpmor > /dev/null

- name: Publish PDF to release
Expand Down

0 comments on commit f0db819

Please sign in to comment.