@@ -18,12 +18,12 @@ jobs:
1818 fail-fast : false
1919 matrix :
2020 config :
21- # - {os: macOS-latest, r: 'devel'}
2221 - {os: macOS-latest, r: 'release'}
2322 - {os: windows-latest, r: 'release'}
2423 - {os: windows-latest, r: 'oldrel'}
25- - {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
26- - {os: ubuntu-16.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
24+ - {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
25+ # - {os: ubuntu-20.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
26+ - {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
2727
2828 env :
2929 MAKEFLAGS : " -j 2"
@@ -60,40 +60,26 @@ jobs:
6060
6161 - name : Install system dependencies
6262 if : runner.os == 'Linux'
63- env :
64- RHUB_PLATFORM : linux-x86_64-ubuntu-gcc
6563 run : |
66- Rscript -e "remotes::install_github('r-hub/sysreqs')"
67- sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
68- sudo -s eval "$sysreqs"
69-
64+ while read -r cmd
65+ do
66+ eval sudo $cmd
67+ done < <(Rscript -e 'cat(remotes::system_requirements("ubuntu", "20.04"), sep = "\n")')
7068 - name : Install dependencies
7169 run : |
7270 remotes::install_deps(dependencies = TRUE)
7371 remotes::install_cran("rcmdcheck")
7472 shell : Rscript {0}
7573
76- - name : Session info
77- run : |
78- options(width = 100)
79- pkgs <- installed.packages()[, "Package"]
80- sessioninfo::session_info(pkgs, include_base = TRUE)
81- shell : Rscript {0}
82-
8374 - name : Check
8475 env :
85- _R_CHECK_CRAN_INCOMING_ : false
76+ _R_CHECK_CRAN_INCOMING_REMOTE_ : false
8677 run : rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
8778 shell : Rscript {0}
8879
89- # - name: Show testthat output
90- # if: always()
91- # run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
92- # shell: bash
93-
9480 - name : Upload check results
9581 if : failure()
96- uses : actions/upload-artifact@master
82+ uses : actions/upload-artifact@main
9783 with :
9884 name : ${{ runner.os }}-r${{ matrix.config.r }}-results
9985 path : check
0 commit comments