Skip to content

Commit

Permalink
Merge branch 'dev_nextrelease' into watersurfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
florisvdh committed Nov 14, 2023
2 parents 6d00dfb + 6556884 commit 430666c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 74 deletions.
74 changes: 20 additions & 54 deletions .github/workflows/R-CMD-check-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ jobs:
fail-fast: false
matrix:
config:
- {os: ubuntu-20.04, r: 'release'}
- {os: ubuntu-20.04, r: 'devel'}
- {os: ubuntu-18.04, r: 'release'}
- {os: ubuntu-18.04, r: 'devel'}
- {os: ubuntu-22.04, r: 'release'}
- {os: ubuntu-22.04, r: 'devel'}
- {os: windows-latest, r: 'release'}
- {os: macOS-latest, r: 'release'}

Expand All @@ -35,61 +33,29 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.config.r }}
- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-pandoc@v1

- 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}

- name: Restore (or define new) R package cache
uses: actions/cache@v2
- uses: r-lib/actions/setup-r@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ matrix.config.os }}-${{ secrets.CACHE_VERSION }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: false

- name: Install system dependencies (Linux)
- name: Add ubuntugis-unstable PPA (Linux)
if: runner.os == 'Linux'
run: |
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
while read -r cmd
do
eval sudo $cmd
done < <(Rscript -e 'release <- system("lsb_release -rs", intern = TRUE); writeLines(remotes::system_requirements("ubuntu", release))')
# Add ubuntugis-unstable PPA
sudo mkdir -p /root/.gnupg
sudo chmod 700 /root/.gnupg
sudo gpg --no-default-keyring --keyring /etc/apt/keyrings/ubuntugis-unstable-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6B827C12C2D425E227EDCA75089EBE08314DF160
sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/ubuntugis-unstable-archive-keyring.gpg] http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu `lsb_release -c -s` main" > /etc/apt/sources.list.d/ubuntugis-unstable.list'
- name: Install system dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install pkg-config
brew install udunits
brew install gdal
- name: Install package dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
shell: Rscript {0}

- name: Check
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: |
options(rmarkdown.html_vignette.check_title = FALSE)
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
shell: Rscript {0}

- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
- uses: r-lib/actions/setup-r-dependencies@v2
with:
name: ${{ matrix.config.os }}-r${{ matrix.config.r }}-results
path: check
cache-version: ${{ secrets.CACHE_VERSION }}
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
5 changes: 2 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
fail-fast: false
matrix:
config:
- {os: ubuntu-20.04, r: 'release'}
- {os: ubuntu-18.04, r: 'release'}
- {os: ubuntu-22.04, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: macOS-latest, r: 'release'}

Expand All @@ -28,7 +27,7 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2

Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/site-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ name: site-deploy

jobs:
site-deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2

Expand All @@ -23,14 +23,9 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: ${{ secrets.CACHE_VERSION }}
extra-packages: local::.
extra-packages: local::., pkgdown@1.6.1
needs: website

- name: Install pkgdown version
run: |
remotes::install_version("pkgdown", "1.6.1")
shell: Rscript {0}

- name: Deploy package
run: |
git config --local user.email "actions@github.com"
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/site-devel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ name: site-devel

jobs:
site-devel:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2

Expand All @@ -23,20 +23,15 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: ${{ secrets.CACHE_VERSION }}
extra-packages: local::.
extra-packages: local::., pkgdown@1.6.1
needs: website

- name: Install pkgdown version
run: |
remotes::install_version("pkgdown", "1.6.1")
shell: Rscript {0}

- name: Build site
run: |
Rscript -e 'options(rmarkdown.html_vignette.check_title = FALSE); pkgdown::build_site()'
- name: Upload pkgdown-site as artifact
uses: actions/upload-artifact@main
uses: actions/upload-artifact@v3
with:
name: pkgdown-site
path: docs

0 comments on commit 430666c

Please sign in to comment.