Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: compile-slides
'on':
push:
branches: [ master, main ]
branches: [ master, main, 3-speed-up-ci-with-caching ]

jobs:
build:
Expand All @@ -14,6 +14,18 @@ jobs:
submodules: true
- name: get pu for preview
run: sudo apt install poppler-utils
# https://github.com/actions/cache/issues/342
- name: Caching
id: cache-slides
uses: actions/cache@v3
with:
path: |
**/build/*
!**/build/*.pdf
overview/*
!Overview/*.pdf
key: ${{ runner.os }}-eidi-ss2022-slides-v2-${{ github.run_id }}
restore-keys: ${{ runner.os }}-eidi-ss2022-slides-v2-
- name: use make docker to do the magic
run: make docker
- name: 'compiling the pdfs'
Expand Down
3 changes: 2 additions & 1 deletion data/makefile.meta
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ noanim_%-dark.pdf: $(DEPENDENCIES)
# we only make use of temporary files to do not clutter
define produce
echo "${__FILECONTENT}" > "${__FILENAME}"
sltx raw-compile "${__FILENAME}"
latexmk -shell-escape -output-directory=build/ -pdf "${__FILENAME}"
rm "${__FILENAME}"
mv build/*.pdf ./
endef

clean:
Expand Down