ci: add R-CMD-check workflow with PDF manual build #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # R CMD check with PDF manual on push to master | |
| # Uses r-lib/actions (not rhub) so we control check args | |
| name: R-CMD-check | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| permissions: read-all | |
| jobs: | |
| R-CMD-check: | |
| runs-on: ${{ matrix.config.os }} | |
| name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - {os: ubuntu-latest, r: 'devel'} | |
| - {os: ubuntu-latest, r: 'release'} | |
| - {os: macos-latest, r: 'release'} | |
| - {os: windows-latest, r: 'release'} | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| R_KEEP_PKG_SOURCE: yes | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| r-version: ${{ matrix.config.r }} | |
| use-public-rspm: true | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| extra-packages: any::rcmdcheck | |
| needs: check | |
| - uses: r-lib/actions/setup-tinytex@v2 | |
| - name: Install additional LaTeX packages | |
| run: | | |
| tlmgr install makeindex | |
| tlmgr install collection-fontsrecommended | |
| shell: bash | |
| - uses: r-lib/actions/check-r-package@v2 | |
| with: | |
| args: '"--as-cran"' | |
| error-on: '"error"' |