diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 2007ce9..fba0f7c 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -29,10 +29,6 @@ jobs: R_KEEP_PKG_SOURCE: yes steps: - - name: Install qpdf (macOS only) - if: runner.os == 'macOS' - run: brew install qpdf || brew upgrade qpdf - - uses: actions/checkout@v4 - uses: r-lib/actions/setup-pandoc@v2 @@ -43,8 +39,17 @@ jobs: http-user-agent: ${{ matrix.config.http-user-agent }} use-public-rspm: true - + # Ensure qpdf is installed on macOS + - name: Install qpdf (macOS only) + if: runner.os == 'macOS' + run: | + brew update + brew install qpdf || brew upgrade qpdf + # Ensure Homebrew is updated (macOS) + - name: Update Homebrew (macOS only) + if: runner.os == 'macOS' + run: brew doctor # Cache R package library - name: Cache R packages @@ -70,7 +75,8 @@ jobs: if: runner.os != 'Windows' run: Rscript -e 'urlchecker::url_update(".")' + # Build and check the R package - uses: r-lib/actions/check-r-package@v2 with: upload-snapshots: true - build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' + build_args: 'c("--no-manual", "--compact-vignettes=gs+qpdf")'