|
| 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 |
| 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 | + |
| 24 | + - { os: windows-latest, r: "release" } |
| 25 | + # Use 3.6 to trigger usage of RTools35 |
| 26 | + - { os: windows-latest, r: "3.6" } |
| 27 | + # use 4.1 to check with rtools40's older compiler |
| 28 | + - { os: windows-latest, r: "4.1" } |
| 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 | + # The oldest version of R we claim to support |
| 37 | + - { os: ubuntu-latest, r: "3.5" } |
| 38 | + |
| 39 | + env: |
| 40 | + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
| 41 | + R_KEEP_PKG_SOURCE: yes |
| 42 | + |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v3 |
| 45 | + |
| 46 | + - uses: r-lib/actions/setup-pandoc@v2 |
| 47 | + |
| 48 | + - uses: r-lib/actions/setup-r@v2 |
| 49 | + with: |
| 50 | + r-version: ${{ matrix.config.r }} |
| 51 | + http-user-agent: ${{ matrix.config.http-user-agent }} |
| 52 | + use-public-rspm: true |
| 53 | + |
| 54 | + - uses: r-lib/actions/setup-r-dependencies@v2 |
| 55 | + with: |
| 56 | + extra-packages: any::rcmdcheck |
| 57 | + needs: check |
| 58 | + |
| 59 | + - uses: r-lib/actions/check-r-package@v2 |
| 60 | + with: |
| 61 | + upload-snapshots: true |
0 commit comments