From d5129f08356539b5599f9d64055382f0eb386bdf Mon Sep 17 00:00:00 2001 From: wlandau Date: Thu, 29 Feb 2024 18:05:24 -0500 Subject: [PATCH] Add runners --- .github/workflows/check.yaml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index bb1194f..95234b6 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -3,8 +3,20 @@ on: [push, pull_request] name: check jobs: - check: - runs-on: ubuntu-latest + R-CMD-check: + runs-on: ${{ matrix.config.os }} + + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + + strategy: + fail-fast: false + matrix: + config: + - {os: macos-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} + - {os: ubuntu-latest, r: 'release'} + - {os: ubuntu-latest, r: 'oldrel-1'} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} @@ -17,6 +29,8 @@ jobs: - uses: r-lib/actions/setup-r@v2 with: + r-version: ${{ matrix.config.r }} + http-user-agent: ${{ matrix.config.http-user-agent }} use-public-rspm: true - uses: r-lib/actions/setup-r-dependencies@v2 @@ -24,11 +38,7 @@ jobs: extra-packages: any::rcmdcheck needs: check - - name: Git config - run: | - git config --global user.email "actions@github.com" - git config --global user.name "GitHub Actions" - - uses: r-lib/actions/check-r-package@v2 with: upload-snapshots: true + build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'