Skip to content

Commit

Permalink
specify R version
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzwalthert committed Oct 25, 2020
1 parent 7f1e9fb commit 6308df5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/benchmarking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,22 @@ jobs:
run: git branch $GITHUB_BASE_REF remotes/origin/$GITHUB_BASE_REF; git branch
- name: Setup R
uses: r-lib/actions/setup-r@master
with:
r-version: ${{ matrix.config.r }}
- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}
- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
env:
Expand Down

0 comments on commit 6308df5

Please sign in to comment.