Update github workflow #11
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
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag. | |
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
name: R-CMD-check | |
jobs: | |
R-CMD-check: | |
runs-on: ${{ matrix.config.os }} | |
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: windows-latest, r: 'release'} | |
- {os: macOS-latest, r: 'release'} | |
- {os: ubuntu-24.04, r: 'release'} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
use-public-rspm: true | |
# Taken from SYSTEM REQUIREMENTS section from the Posit Public Package Manager | |
# https://p3m.dev/client/#/repos/cran/packages/overview?search=imager | |
# - name: Install X11 deps on Linux | |
# if: runner.os == 'Linux' | |
# run: | | |
# sudo apt-get update -y | |
# sudo apt-get install -y libfftw3-dev libtiff-dev libicu-dev libpng-dev libjpeg-dev libglpk-dev libxml2-dev | |
- name: Install XQuartz on MacOS | |
if: runner.os == 'macOS' | |
run: | | |
brew install --cask xquartz | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::rcmdcheck | |
needs: check | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
upload-snapshots: true | |
upload-results: true | |
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' |