Skip to content

Commit 2d201f5

Browse files
Revert back to manual caching and cache retrieval
1 parent f42d75f commit 2d201f5

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/run-tests.yaml

+15-4
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,19 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v2
2323

24-
# Restore R dependencies cache
24+
# Create directories for R libraries if not already present
25+
- name: Create R Library Paths
26+
run: |
27+
mkdir -p /github/home/R/x86_64-pc-linux-gnu-library/4.4
28+
mkdir -p renv/library
29+
30+
# Restore cache for R dependencies
2531
- name: Restore R Dependencies Cache
2632
uses: actions/cache@v4
2733
with:
28-
path: /github/home/R/x86_64-pc-linux-gnu-library/4.4
34+
path: |
35+
/github/home/R/x86_64-pc-linux-gnu-library/4.4
36+
renv/library
2937
key: ${{ runner.os }}-r-libs-${{ hashFiles('DESCRIPTION') }}
3038
restore-keys: |
3139
${{ runner.os }}-r-libs-
@@ -41,8 +49,11 @@ jobs:
4149
run: devtools::test(stop_on_failure = TRUE)
4250
shell: Rscript {0}
4351

52+
# Save R dependencies to cache
4453
- name: Save R Dependencies Cache
4554
uses: actions/cache@v4
4655
with:
47-
path: /github/home/R/x86_64-pc-linux-gnu-library/4.4
48-
key: ${{ runner.os }}-r-libs-${{ hashFiles('DESCRIPTION') }}
56+
path: |
57+
/github/home/R/x86_64-pc-linux-gnu-library/4.4
58+
renv/library
59+
key: ${{ runner.os }}-r-libs-${{ hashFiles('DESCRIPTION') }}

0 commit comments

Comments
 (0)