Skip to content

Commit

Permalink
caching LaTeX files to speedup build
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Apr 3, 2024
1 parent fca2a12 commit da307ba
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,33 @@ jobs:
- name: print start date
run: date +%Y-%m-%d_%H:%M

- 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: Python set up
- name: caching LaTeX output
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: python set up
uses: actions/setup-python@v5
with:
python-version: "3.10"
# cache: "pip"

- name: Python cache set up
- name: python cache set up
uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
Expand All @@ -39,10 +53,10 @@ jobs:
# pwd
# ls -al

- name: Check of chapters for known issues
- name: check of chapters for known issues
run: python3 scripts/check_chapters.py

- name: Check pre-commit tests
- name: check pre-commit tests
uses: pre-commit/[email protected]

- name: install requirements
Expand Down

0 comments on commit da307ba

Please sign in to comment.