[skip-ci] fold most code blocks #4
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
on: | |
push: | |
branches: | |
- master | |
- development | |
pull_request: | |
branches: | |
- master | |
- development | |
name: Render bookdown website | |
jobs: | |
tutorial-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, nosuggests: false, r: 'release'} | |
- {os: windows-latest, nosuggests: false, r: 'devel'} | |
- {os: windows-latest, nosuggests: false, r: 'release'} | |
- {os: windows-latest, nosuggests: false, r: 'oldrel'} | |
- {os: ubuntu-20.04, nosuggests: false, r: 'devel'} | |
- {os: ubuntu-20.04, nosuggests: false, r: 'release'} | |
- {os: ubuntu-20.04, nosuggests: true, r: 'release'} | |
- {os: ubuntu-20.04, nosuggests: false, r: 'oldrel'} | |
env: | |
_R_CHECK_DEPENDS_ONLY_: ${{ matrix.config.nosuggests }} | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
SPADES_USE_REQUIRE: false | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: PredictiveEcology/actions/install-spatial-deps@main | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
Ncpus: 2 | |
r-version: ${{ matrix.config.r }} | |
use-public-rspm: false | |
- name: Install TinyTeX | |
uses: r-lib/actions/setup-tinytex@v2 | |
env: | |
# install full prebuilt version | |
TINYTEX_INSTALLER: TinyTeX | |
- name: Install package dependencies | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: | | |
any::rcmdcheck | |
rmarkdown | |
bookdown | |
htmlwidgets | |
tinytex | |
fastshp=?ignore | |
NLMR=?ignore | |
- name: Render Bookdown | |
run: | | |
source(".github/workflows/render.R", echo = TRUE) | |
shell: Rscript {0} | |