Skip to content

Commit

Permalink
pass sf configure.args in matrix config
Browse files Browse the repository at this point in the history
  • Loading branch information
ateucher committed Mar 31, 2020
1 parent 634f2c0 commit 9963ca3
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
matrix:
config:
- { os: windows-latest, r: '3.6', args: "--no-manual"}
- { os: macOS-latest, r: '3.6', args: "--no-manual"}
- { os: macOS-latest, r: '3.6', args: "--no-manual", no_node: true}
- { os: macOS-latest, r: 'devel'}
- { os: macOS-latest, r: '3.6', args: "--no-manual", sf_args: "--with-proj-lib=/usr/local/lib/"}
- { os: macOS-latest, r: '3.6', args: "--no-manual", no_node: true, sf_args: "--with-proj-lib=/usr/local/lib/"}
- { os: macOS-latest, r: 'devel', sf_args: "--with-proj-lib=/usr/local/lib/"}
- { os: ubuntu-16.04, r: '3.5', v8: "libnode-dev", args: "--no-manual"}
- { os: ubuntu-16.04, r: '3.6', v8: "libv8-dev", args: "--no-manual"}
- { os: ubuntu-16.04, r: '3.6', v8: "libnode-dev"}
Expand Down Expand Up @@ -91,15 +91,17 @@ jobs:
shell: Rscript {0}

- name: Install dependencies
run: Rscript -e "remotes::install_deps(dependencies = TRUE)" -e "remotes::install_cran('rcmdcheck')"

- name: Install sf mac
if: runner.os == 'macOS'
run: install.packages('sf', configure.args = '--with-proj-lib=/usr/local/lib/')
run: |
remotes::install_deps(dependencies = TRUE, configure.args = c('sf' = '${{ matrix.config.sf_args }}'))
remotes::install_cran('rcmdcheck')
shell: Rscript {0}


- name: Check
run: Rscript -e "rcmdcheck::rcmdcheck(args = '${{ matrix.config.args }}', error_on = 'warning', check_dir = 'check')"
run: |
rcmdcheck::rcmdcheck(args = '${{ matrix.config.args }}', error_on = 'warning', check_dir = 'check')
shell: Rscript {0}


- name: Upload check results
if: failure()
Expand Down

0 comments on commit 9963ca3

Please sign in to comment.