fix for when rstLCC is bigger than RTM #265
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 | |
- development | |
pull_request: | |
branches: | |
- main | |
- development | |
name: R-CMD-check | |
jobs: | |
R-CMD-check: | |
if: "!contains(github.event.commits[0].message, '[skip-ci]')" | |
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: 'devel'} | |
- {os: windows-latest, r: 'release'} | |
- {os: ubuntu-20.04, r: 'devel'} | |
- {os: ubuntu-20.04, r: 'release'} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install Linux system dependencies | |
if: runner.os == 'Linux' | |
run: | | |
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable | |
sudo apt-get update -y | |
sudo apt-get install -y libudunits2-dev libgdal-dev libgeos-dev libproj-dev libsqlite0-dev | |
- name: Install macOS system dependencies | |
if: runner.os == 'macOS' | |
run: | | |
brew install pkg-config | |
brew install gdal | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
extra-repositories: 'https://r-spatial.r-universe.dev/' | |
Ncpus: 2 | |
r-version: ${{ matrix.config.r }} | |
use-public-rspm: false | |
- name: Install sf from r-universe | |
run: | | |
install.packages("sf") | |
shell: Rscript {0} | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: | | |
any::rcmdcheck | |
any::sf | |
fastshp=?ignore | |
NLMR=?ignore | |
- name: Install additional package dependencies | |
run: | | |
pak::pkg_install("remotes") | |
pak::pkg_install("ropensci/NLMR") | |
remotes::install_github("s-u/fastshp") | |
shell: Rscript {0} | |
- uses: r-lib/actions/check-r-package@v2 | |
- name: Show testthat output | |
if: always() | |
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true | |
shell: bash | |
- name: Upload check results | |
if: failure() | |
uses: actions/upload-artifact@main | |
with: | |
name: ${{ runner.os }}-r${{ matrix.config.r }}-results | |
path: check |