Skip to content

Commit 6308df5

Browse files
specify R version
1 parent 7f1e9fb commit 6308df5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/benchmarking.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,22 @@ jobs:
3535
run: git branch $GITHUB_BASE_REF remotes/origin/$GITHUB_BASE_REF; git branch
3636
- name: Setup R
3737
uses: r-lib/actions/setup-r@master
38+
with:
39+
r-version: ${{ matrix.config.r }}
3840
- name: Query dependencies
3941
run: |
4042
install.packages('remotes')
4143
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
4244
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
4345
shell: Rscript {0}
46+
- name: Cache R packages
47+
if: runner.os != 'Windows'
48+
uses: actions/cache@v1
49+
with:
50+
path: ${{ env.R_LIBS_USER }}
51+
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
52+
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
53+
4454
- name: Install system dependencies
4555
if: runner.os == 'Linux'
4656
env:

0 commit comments

Comments
 (0)