Skip to content

Commit cb0bc36

Browse files
authored
Add Actions for windows too (#9)
1 parent 8b30d51 commit cb0bc36

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ _pkgdown.yaml
1616
pkgdown
1717
.github
1818
docs
19+
^\.github$

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

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
22
# 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.
37
on:
48
push:
59
branches: [main, master]
@@ -12,15 +16,37 @@ permissions: read-all
1216

1317
jobs:
1418
R-CMD-check:
15-
runs-on: ubuntu-latest
19+
runs-on: ${{ matrix.config.os }}
20+
21+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
config:
27+
- {os: macos-latest, r: 'release'}
28+
29+
- {os: windows-latest, r: 'devel'}
30+
- {os: windows-latest, r: 'release'}
31+
- {os: windows-latest, r: 'oldrel-1'}
32+
33+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
34+
- {os: ubuntu-latest, r: 'release'}
35+
- {os: ubuntu-latest, r: 'oldrel-1'}
36+
1637
env:
1738
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1839
R_KEEP_PKG_SOURCE: yes
40+
1941
steps:
2042
- uses: actions/checkout@v4
2143

44+
- uses: r-lib/actions/setup-pandoc@v2
45+
2246
- uses: r-lib/actions/setup-r@v2
2347
with:
48+
r-version: ${{ matrix.config.r }}
49+
http-user-agent: ${{ matrix.config.http-user-agent }}
2450
use-public-rspm: true
2551

2652
- uses: r-lib/actions/setup-r-dependencies@v2
@@ -37,4 +63,4 @@ jobs:
3763
- uses: r-lib/actions/check-r-package@v2
3864
with:
3965
upload-snapshots: true
40-
build_args: 'c("--compact-vignettes=gs+qpdf")'
66+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

0 commit comments

Comments
 (0)