updated GitHub actions
This commit is contained in:
parent
31f824b5d5
commit
273936b151
|
@ -18,10 +18,10 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
- {os: windows-latest, r: '3.6'}
|
- {os: windows-latest, r: 'release'}
|
||||||
- {os: macOS-latest, r: '3.6'}
|
- {os: macOS-latest, r: 'release'}
|
||||||
- {os: macOS-latest, r: 'devel'}
|
- {os: macOS-latest, r: 'devel'}
|
||||||
- {os: ubuntu-16.04, r: '3.6', rspm: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
|
- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
|
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
|
||||||
|
@ -40,6 +40,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
install.packages('remotes')
|
install.packages('remotes')
|
||||||
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
|
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}
|
shell: Rscript {0}
|
||||||
|
|
||||||
- name: Cache R packages
|
- name: Cache R packages
|
||||||
|
@ -47,8 +48,8 @@ jobs:
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{ env.R_LIBS_USER }}
|
path: ${{ env.R_LIBS_USER }}
|
||||||
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('.github/depends.Rds') }}
|
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
|
||||||
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-
|
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
|
|
Loading…
Reference in New Issue