Skip to content

Commit

Permalink
Changing how cacheing works
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Nov 21, 2024
1 parent 12aa24b commit df22ad6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
id: cache-r-packages
with:
path: |
/usr/lib/R/site-library/
key: ${{ runner.os }}
netdiffuseR_*
key: ${{ runner.os }}-netdiffuseR-pkg

- name: Download netdiffuseR
if: steps.cache-r-packages.outputs.cache-hit != 'true'
Expand All @@ -34,8 +34,13 @@ jobs:
- name: Install netdiffuseR
if: steps.cache-r-packages.outputs.cache-hit != 'true'
run: |
R CMD INSTALL netdiffuseR
R CMD INSTALL --build netdiffuseR
rm -rf netdiffuseR
- name: Restoring cached version of netdiffuseR
if: steps.cache-r-packages.outputs.cache-hit == 'true'
run: |
R CMD INSTALL netdiffuseR_*
- name: Install Quarto
run: |
Expand Down

0 comments on commit df22ad6

Please sign in to comment.