Skip to content

Commit 3f46e46

Browse files
committed
Updating Github workflow
1 parent 17057f7 commit 3f46e46

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/R-CMD-check.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2-
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
31
on:
42
push:
53
branches: [main, master]
@@ -20,7 +18,7 @@ jobs:
2018
config:
2119
- {os: macos-latest, r: 'release'}
2220
- {os: windows-latest, r: 'release'}
23-
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
21+
- {os: ubuntu-latest, r: 'devel'}
2422
- {os: ubuntu-latest, r: 'release'}
2523
- {os: ubuntu-latest, r: 'oldrel-1'}
2624

@@ -49,11 +47,19 @@ jobs:
4947
http-user-agent: ${{ matrix.config.http-user-agent }}
5048
use-public-rspm: true
5149

50+
# Cache R packages to speed up builds
51+
- name: Cache R packages
52+
uses: actions/cache@v3
53+
with:
54+
path: ~/.cache/R
55+
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('**/DESCRIPTION') }}
56+
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}
57+
5258
- uses: r-lib/actions/setup-r-dependencies@v2
5359
with:
5460
extra-packages: any::rcmdcheck
5561
needs: check
5662

5763
- uses: r-lib/actions/check-r-package@v2
5864
with:
59-
upload-snapshots: true
65+
upload-snapshots: true

0 commit comments

Comments
 (0)