Skip to content

Commit a22d587

Browse files
Update github actions workflows
1 parent 0ec93a4 commit a22d587

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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
3+
#
4+
# NOTE: This workflow is overkill for most R packages and
5+
# check-standard.yaml is likely a better choice.
6+
# usethis::use_github_action("check-standard") will install it.
7+
on:
8+
workflow_dispatch:
9+
10+
name: R-CMD-check-full.yaml
11+
12+
permissions: read-all
13+
14+
jobs:
15+
R-CMD-check:
16+
runs-on: ${{ matrix.config.os }}
17+
18+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
config:
24+
- {os: macos-latest, r: 'release'}
25+
26+
- {os: windows-latest, r: 'release'}
27+
# use 4.0 or 4.1 to check with rtools40's older compiler
28+
- {os: windows-latest, r: 'oldrel-4'}
29+
30+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
31+
- {os: ubuntu-latest, r: 'release'}
32+
- {os: ubuntu-latest, r: 'oldrel-1'}
33+
- {os: ubuntu-latest, r: 'oldrel-2'}
34+
- {os: ubuntu-latest, r: 'oldrel-3'}
35+
- {os: ubuntu-latest, r: 'oldrel-4'}
36+
37+
env:
38+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
39+
R_KEEP_PKG_SOURCE: yes
40+
41+
steps:
42+
- uses: actions/checkout@v4
43+
44+
- uses: r-lib/actions/setup-pandoc@v2
45+
46+
- uses: r-lib/actions/setup-r@v2
47+
with:
48+
r-version: ${{ matrix.config.r }}
49+
http-user-agent: ${{ matrix.config.http-user-agent }}
50+
use-public-rspm: true
51+
52+
- uses: r-lib/actions/setup-r-dependencies@v2
53+
with:
54+
extra-packages: any::rcmdcheck
55+
needs: check
56+
57+
- uses: r-lib/actions/check-r-package@v2
58+
with:
59+
upload-snapshots: true
60+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: [main, master]
66
pull_request:
7+
branches: [main, master]
78

89
name: R-CMD-check.yaml
910

0 commit comments

Comments
 (0)