diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 2bf483d..d63cb58 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -2,16 +2,21 @@ name: build on: push: branches: - - devel + - RELEASE_3_18 + +env: + cache-version: v1 jobs: build: - runs-on: ubuntu-latest - container: bioconductor/bioconductor_docker:latest + runs-on: ubuntu-22.04 + container: bioconductor/bioconductor_docker:RELEASE_3_18 env: R_REMOTES_NO_ERRORS_FROM_WARNINGS: true + R_REMOTES_STANDALONE: TRUE GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + CRAN: https://packagemanager.posit.co/cran/__linux__/jammy/latest steps: - name: Checkout Repository @@ -25,33 +30,22 @@ jobs: - name: Cache R packages if: runner.os != 'Windows' - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: /usr/local/lib/R/site-library - key: ${{ runner.os }}-r-1-${{ hashFiles('.github/depends.Rds') }} - restore-keys: ${{ runner.os }}-r-1- - - # This lets us augment with additional dependencies - - name: Install system dependencies - if: runner.os == 'Linux' - env: - RHUB_PLATFORM: linux-x86_64-ubuntu-gcc - run: | - Rscript -e "remotes::install_github('r-hub/sysreqs')" - sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))") - sudo -s eval "$sysreqs" + key: ${{ env.cache-version }}-${{ runner.os }}-r-${{ hashFiles('.github/depends.Rds') }} + restore-keys: ${{ env.cache-version }}-${{ runner.os }}-r- - - name: Install dependencies + - name: Install Package Dependencies run: | - options(repos = c(CRAN = "https://packagemanager.posit.co/cran/__linux__/jammy/latest")) - remotes::install_deps(dependencies = TRUE, repos = BiocManager::repositories()) + remotes::install_local(dependencies = TRUE, repos = BiocManager::repositories(), build_vignettes = TRUE, upgrade = TRUE) BiocManager::install(c("rcmdcheck", "pkgdown"), ask = FALSE, update = TRUE) shell: Rscript {0} - - name: Check + - name: Check Package env: _R_CHECK_CRAN_INCOMING_REMOTE_: false - run: rcmdcheck::rcmdcheck(args = c("--no-manual"), error_on = "warning", check_dir = "check") + run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning", check_dir = "check") shell: Rscript {0} - name: generate codecov report