windows makeflags in steps #424
Workflow file for this run
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
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
push: | |
branches: [main, master, 'hotfix/*', 'release/*', develop, 'feature/*-withci'] | |
pull_request: | |
branches: [main, master, 'hotfix/*', 'release/*', develop] | |
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: macOS-latest, r: 'release'} | |
- {os: windows-latest, r: 'release'} | |
# rtools40's older compiler: R-4.0.0 to to R-4.1.3 | |
- {os: windows-latest, r: '4.1'} | |
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} | |
- {os: ubuntu-latest, r: 'release'} | |
- {os: ubuntu-latest, r: 'oldrel-1'} | |
- {os: ubuntu-latest, r: 'oldrel-2'} | |
- {os: ubuntu-latest, r: 'oldrel-3'} | |
# add oldrel-4 in Spring 2025 | |
# - {os: ubuntu-latest, r: 'oldrel-4'} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Memory issue in R | |
if: ${{ (matrix.config.os == 'windows-latest' && matrix.config.r == '4.1') }} | |
run: | | |
echo "MAKEFLAGS=-j1" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- 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 | |
with: | |
extra-packages: any::rcmdcheck | |
needs: check | |
# do not build vignettes in github actions check and ignore warnings | |
- uses: r-lib/actions/check-r-package@v2 | |
if: "!startsWith(github.ref, 'refs/heads/release/') && !startsWith(github.ref, 'refs/heads/hotfix/')" | |
with: | |
args: 'c("--no-manual", "--as-cran", "--no-vignettes", "--no-build-vignettes", "--ignore-vignettes", "--no-examples")' | |
build_args: 'c("--no-manual", "--no-build-vignettes")' | |
error-on: '"warning"' | |
check-dir: '"check"' | |
upload-snapshots: false | |
upload-results: 'never' | |
- name: Run check for CRAN | |
uses: r-lib/actions/check-r-package@v2 | |
if: startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/hotfix/') | |
with: | |
args: 'c("--no-manual", "--as-cran")' | |
build_args: 'c("--no-manual")' | |
error-on: '"warning"' | |
check-dir: '"check"' | |
upload-snapshots: false | |
upload-results: false | |
env: | |
_R_CHECK_CRAN_INCOMING_REMOTE_: true | |
_R_CHECK_CRAN_INCOMING_: true | |
# do not upload artifact until changing to public repo | |
# When public repo -> uncomment below | |
# - name: Upload check results | |
# if: failure() | |
# uses: actions/upload-artifact@main | |
# with: | |
# name: ${{ runner.os }}-r${{ matrix.config.r }}-results | |
# path: check |