diff --git a/.github/workflows/drat--insert-package.yaml b/.github/workflows/drat--insert-package.yaml index 9e0e4b7..8ce520d 100644 --- a/.github/workflows/drat--insert-package.yaml +++ b/.github/workflows/drat--insert-package.yaml @@ -45,7 +45,8 @@ jobs: fail-fast: false matrix: config: - - {os: ubuntu-latest, r: 'release'} + # - {os: ubuntu-latest, r: 'release'} + - {os: macOS-latest, r: 'release'} env: R_REMOTES_NO_ERRORS_FROM_WARNINGS: true diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index eb7fe57..ad4a822 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -19,7 +19,8 @@ name: Website (pkgdown) jobs: pkgdown: - runs-on: ubuntu-latest + runs-on: macOS-latest + env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} @@ -31,13 +32,28 @@ jobs: - uses: r-lib/actions/setup-r@v1 with: use-public-rspm: true + r-version: 'release' + + - name: Query dependencies + run: | + install.packages('remotes') + saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) + writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") + shell: Rscript {0} - - uses: r-lib/actions/setup-r-dependencies@v1 + - name: Cache R packages + uses: actions/cache@v1 with: - extra-packages: | - pkgdown - devtools - needs: website + path: ${{ env.R_LIBS_USER }} + key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} + restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- + + - name: Install dependencies + run: | + install.packages(c("remotes", "devtools")) + remotes::install_deps(dependencies = TRUE) + remotes::install_cran("pkgdown") + shell: Rscript {0} - name: Roxygenize # The vignettes will be built in step "Deploy package"