Skip to content

Commit f10b83e

Browse files
committed
Trying to minimize computations and cache results
1 parent 94f300b commit f10b83e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
any::rmarkdown
4444
any::Rcpp
4545
any::RcppEigen
46+
any::RcppParallel
4647
any::rstan
4748
any::rstanarm
4849
any::rstantools
@@ -51,8 +52,18 @@ jobs:
5152
any::knitr
5253
needs: website
5354

55+
- uses: actions/cache@v4
56+
with:
57+
path: vignettes/**/_cache
58+
key: knitr-${{ runner.os }}-${{ hashFiles('vignettes/**/*.Rmd') }}
59+
5460
- name: Build site
55-
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
61+
run: |
62+
pkgdown::build_site_github_pages(
63+
new_process = FALSE,
64+
install = FALSE,
65+
override = list(lazy = TRUE)
66+
)
5667
shell: Rscript {0}
5768

5869
- name: Deploy to GitHub pages 🚀

0 commit comments

Comments
 (0)