Skip to content

Commit df22ad6

Browse files
committed
Changing how cacheing works
1 parent 12aa24b commit df22ad6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/website.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
id: cache-r-packages
1717
with:
1818
path: |
19-
/usr/lib/R/site-library/
20-
key: ${{ runner.os }}
19+
netdiffuseR_*
20+
key: ${{ runner.os }}-netdiffuseR-pkg
2121

2222
- name: Download netdiffuseR
2323
if: steps.cache-r-packages.outputs.cache-hit != 'true'
@@ -34,8 +34,13 @@ jobs:
3434
- name: Install netdiffuseR
3535
if: steps.cache-r-packages.outputs.cache-hit != 'true'
3636
run: |
37-
R CMD INSTALL netdiffuseR
37+
R CMD INSTALL --build netdiffuseR
3838
rm -rf netdiffuseR
39+
40+
- name: Restoring cached version of netdiffuseR
41+
if: steps.cache-r-packages.outputs.cache-hit == 'true'
42+
run: |
43+
R CMD INSTALL netdiffuseR_*
3944
4045
- name: Install Quarto
4146
run: |

0 commit comments

Comments
 (0)