Skip to content

Commit a030391

Browse files
Trying to split GitHub badges by OS
1 parent b8cdd8c commit a030391

File tree

3 files changed

+54
-23
lines changed

3 files changed

+54
-23
lines changed

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

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
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.
73
on:
84
push:
95
branches: [main, master]
106
pull_request:
11-
branches: [main, master]
127

13-
name: R-CMD-check.yaml
8+
name: R-CMD-check_windows.yaml
149

1510
permissions: read-all
1611

@@ -24,18 +19,7 @@ jobs:
2419
fail-fast: false
2520
matrix:
2621
config:
27-
- {os: macos-latest, r: 'release'}
28-
2922
- {os: windows-latest, r: 'release'}
30-
# use 4.0 or 4.1 to check with rtools40's older compiler
31-
- {os: windows-latest, r: 'oldrel-4'}
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-
- {os: ubuntu-latest, r: 'oldrel-2'}
37-
- {os: ubuntu-latest, r: 'oldrel-3'}
38-
- {os: ubuntu-latest, r: 'oldrel-4'}
3923

4024
env:
4125
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
@@ -54,14 +38,10 @@ jobs:
5438

5539
- uses: r-lib/actions/setup-r-dependencies@v2
5640
with:
57-
pak-version: devel
58-
extra-packages: |
59-
any::rcmdcheck
60-
41+
extra-packages: any::rcmdcheck
6142
needs: check
6243

6344
- uses: r-lib/actions/check-r-package@v2
6445
with:
6546
upload-snapshots: true
6647
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
67-
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
name: R-CMD-check_windoes.yaml
9+
10+
permissions: read-all
11+
12+
jobs:
13+
R-CMD-check:
14+
runs-on: ${{ matrix.config.os }}
15+
16+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
config:
22+
- {os: macos-latest, r: 'release'}
23+
- {os: windows-latest, r: 'release'}
24+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
25+
- {os: ubuntu-latest, r: 'release'}
26+
- {os: ubuntu-latest, r: 'oldrel-1'}
27+
28+
env:
29+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
30+
R_KEEP_PKG_SOURCE: yes
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- uses: r-lib/actions/setup-pandoc@v2
36+
37+
- uses: r-lib/actions/setup-r@v2
38+
with:
39+
r-version: ${{ matrix.config.r }}
40+
http-user-agent: ${{ matrix.config.http-user-agent }}
41+
use-public-rspm: true
42+
43+
- uses: r-lib/actions/setup-r-dependencies@v2
44+
with:
45+
extra-packages: any::rcmdcheck
46+
needs: check
47+
48+
- uses: r-lib/actions/check-r-package@v2
49+
with:
50+
upload-snapshots: true
51+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
<!-- badges: start -->
5-
[![R-CMD-check](https://github.com/CSAFE-ISU/handwriter/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/CSAFE-ISU/handwriter/actions/workflows/R-CMD-check.yaml)
5+
[![R-CMD-check](https://github.com/CSAFE-ISU/handwriter/actions/workflows/R-CMD-check_windows.yaml/badge.svg)](https://github.com/CSAFE-ISU/handwriter/actions/workflows/R-CMD-check_windows.yaml)
66
[![Codecov test coverage](https://codecov.io/gh/CSAFE-ISU/handwriter/graph/badge.svg)](https://app.codecov.io/gh/CSAFE-ISU/handwriter)
77
<!-- badges: end -->
88

0 commit comments

Comments
 (0)