Skip to content

Commit 23fe6f3

Browse files
committed
Using cache
1 parent 8d386b4 commit 23fe6f3

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/website.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,25 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14+
- uses: actions/cache@v4
15+
name: Cache R packages
16+
id: cache-r-packages
17+
with:
18+
path: '/usr/local/lib/R/site-library/'
19+
key: ${{ runner.os }}
20+
1421
- name: Install netdiffuseR
22+
if: steps.cache-r-packages.outputs.cache-hit != 'true'
1523
uses: actions/checkout@v4
1624
with:
1725
repository: USCCANA/netdiffuseR
1826
path: netdiffuseR
1927

2028
- name: Install netdiffuseR
29+
if: steps.cache-r-packages.outputs.cache-hit != 'true'
2130
run: |
2231
install2.r igraph networkDynamic statnet Rcpp MatchIt \
23-
SparseM viridisLite RcppArmadillo rmarkdown knitr
32+
SparseM viridisLite RcppArmadillo rmarkdown knitr microbenchmark
2433
R CMD INSTALL netdiffuseR
2534
rm -rf netdiffuseR
2635

_quarto.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project:
22
type: website
33
output-dir: 'docs'
4-
4+
55
website:
66
title: "netdiffuseR: A workshop"
77
# body-footer: <text style="text-align:center">ForeSITE</text>

0 commit comments

Comments
 (0)