fail-fast: false
matrix:
lesson: [swcarpentry/shell-novice, datacarpentry/r-intro-geospatial, librarycarpentry/lc-git]
- os: [ubuntu-latest, macos-latest, windows-latest]
+ os: [ubuntu-20.04, macos-latest, windows-latest]
include:
- - os: ubuntu-latest
+ - os: ubuntu-20.04
os-name: Ubuntu
- os: macos-latest
os-name: macOS
run:
shell: bash # forces 'Git for Windows' on Windows
env:
- RSPM: 'https://packagemanager.rstudio.com/cran/__linux__/bionic/latest'
+ RSPM: 'https://packagemanager.rstudio.com/cran/__linux__/focal/latest'
steps:
- name: Set up Ruby
uses: actions/setup-ruby@v1
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
+ - name: Install stringi from source
+ if: runner.os == 'Linux' && steps.check-rmd.outputs.count != 0
+ run: install.packages('stringi', repos='https://cloud.r-project.org')
+ shell: Rscript {0}
+
- name: Install system dependencies for R packages
if: runner.os == 'Linux' && steps.check-rmd.outputs.count != 0
working-directory: lesson
while read -r cmd
do
eval sudo $cmd
- done < <(Rscript -e 'cat(remotes::system_requirements("ubuntu", "18.04"), sep = "\n")')
+ done < <(Rscript -e 'cat(remotes::system_requirements("ubuntu", "20.04"), sep = "\n")')
- run: make site
working-directory: lesson
jobs:
build-website:
if: ${{ !endsWith(github.repository, '/styles') }}
- runs-on: ubuntu-latest
+ runs-on: ubuntu-20.04
env:
- RSPM: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"
+ RSPM: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
while read -r cmd
do
eval sudo $cmd
- done < <(Rscript -e 'cat(remotes::system_requirements("ubuntu", "18.04"), sep = "\n")')
+ done < <(Rscript -e 'cat(remotes::system_requirements("ubuntu", "20.04"), sep = "\n")')
- name: Render the markdown and confirm that the site can be built
run: make site