The GitHub Actions build currently takes about 4 minutes and 10 seconds. My goal is to halve this.
Why it takes so long:
- Full re-render every run: The _freeze/ directory is in .gitignore, so Quarto re-renders all 44+ documents from scratch on every push.
- Setup overhead:
- Setting up Quarto takes ~10s.
- Installing R and system dependencies takes ~1m 20s.
- Additional Setup (Python) takes ~20s and runs every time without caching (installs jupyter, jupyter-cache).
- ** Sequential Rendering:** The rendering step takes over 2 minutes.
Proposed solutions:
- Cache or commit _freeze/: Preserving the _freeze directory will allow Quarto to skip re-rendering unchanged files.
- Optimize Python setup: Use �ctions/setup-python with caching or a faster installation method.
- Use a pre-built Docker image: Creating a custom image with all system dependencies (both R and Python) could save over 1 minute of setup time.
- Parallel Quarto rendering: Enable parallel processing if not already active.
The GitHub Actions build currently takes about 4 minutes and 10 seconds. My goal is to halve this.
Why it takes so long:
Proposed solutions: