R CMD check with an R-hub container #7
This file contains 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
# https://r-hub.github.io/containers/gha.html | |
name: R CMD check with an R-hub container | |
on: | |
workflow_dispatch: | |
inputs: | |
inpcont: | |
description: 'Check container' | |
required: true | |
type: choice | |
options: | |
- 'ubuntu-clang' | |
- 'ubuntu-gcc12' | |
- 'clang16' | |
- 'clang17' | |
- 'clang-asan' | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/r-hub/containers/${{ github.event.inputs.inpcont }}:latest | |
steps: | |
- name: Add checkbashism | |
run: apt-get install -y devscripts | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
R -q -e 'pak::pkg_install(c("deps::.", "any::rcmdcheck"), dependencies = TRUE)' | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
args: 'c("--no-manual", "--as-cran", "--ignore-vignettes")' | |
build_args: 'c("--no-build-vignettes")' |