|
| 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 only directly installs "hard" dependencies, i.e. Depends, |
| 5 | +# Imports, and LinkingTo dependencies. Notably, Suggests dependencies are never |
| 6 | +# installed, with the exception of testthat, knitr, and rmarkdown. The cache is |
| 7 | +# never used to avoid accidentally restoring a cache containing a suggested |
| 8 | +# dependency. |
| 9 | +on: |
| 10 | + push: |
| 11 | + branches: [main, master] |
| 12 | + pull_request: |
| 13 | + |
| 14 | +name: R-CMD-check-hard.yaml |
| 15 | + |
| 16 | +permissions: read-all |
| 17 | + |
| 18 | +jobs: |
| 19 | + check-no-suggests: |
| 20 | + runs-on: ${{ matrix.config.os }} |
| 21 | + |
| 22 | + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) |
| 23 | + |
| 24 | + strategy: |
| 25 | + fail-fast: false |
| 26 | + matrix: |
| 27 | + config: |
| 28 | + - {os: ubuntu-latest, r: 'release'} |
| 29 | + |
| 30 | + env: |
| 31 | + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
| 32 | + R_KEEP_PKG_SOURCE: yes |
| 33 | + CXX14: g++ |
| 34 | + CXX14STD: -std=c++1y |
| 35 | + CXX14FLAGS: -Wall -g -02 |
| 36 | + |
| 37 | + steps: |
| 38 | + - uses: actions/checkout@v4 |
| 39 | + |
| 40 | + - uses: r-lib/actions/setup-pandoc@v2 |
| 41 | + |
| 42 | + - uses: r-lib/actions/setup-r@v2 |
| 43 | + with: |
| 44 | + r-version: ${{ matrix.config.r }} |
| 45 | + http-user-agent: ${{ matrix.config.http-user-agent }} |
| 46 | + use-public-rspm: true |
| 47 | + |
| 48 | + - uses: r-lib/actions/setup-r-dependencies@v2 |
| 49 | + with: |
| 50 | + dependencies: '"hard"' |
| 51 | + cache: false |
| 52 | + extra-packages: | |
| 53 | + any::rcmdcheck |
| 54 | + any::testthat |
| 55 | + any::knitr |
| 56 | + any::rmarkdown |
| 57 | + needs: check |
| 58 | + |
| 59 | + - uses: r-lib/actions/check-r-package@v2 |
| 60 | + with: |
| 61 | + upload-snapshots: true |
| 62 | + build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' |
0 commit comments