From da99378ec7b96713c45d904ab0695718909178ed Mon Sep 17 00:00:00 2001 From: "Zhian N. Kamvar" Date: Thu, 17 Dec 2020 11:46:31 -0800 Subject: [PATCH] Speed up builds of R-based lessons R-based lessons might take a while to build because packages need to be compiled from source. RStudio Package Manager has compiled versions of packages for ubuntu distros starting with 16.04: https://packagemanager.rstudio.com/client/#/repos/1/overview I've added the necessary magic in the actions yaml to make it work. --- .github/workflows/website.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index ea09543..2ec7dfb 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -7,6 +7,9 @@ jobs: build-website: if: ${{ !endsWith(github.repository, '/styles') }} runs-on: ubuntu-latest + env: + RSPM: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest" + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} defaults: run: shell: bash @@ -45,6 +48,7 @@ jobs: uses: r-lib/actions/setup-r@master with: r-version: 'release' + http-user-agent: "R/4.0.0 (ubuntu-16.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" - name: Install needed packages if: steps.check-rmd.outputs.count != 0 -- 2.30.2