Skip to content

Commit 2fd9bfa

Browse files
authored
Enable devel builds again via GitHub Actions on Linux (#32)
* Enable devel builds on Linux via GitHub Actions * Add ChangeLog entry * Switch R-CMD-check to use ubuntu-20.04 instead of ubuntu-16.04 * Avoid oldrel on ubuntu
1 parent 358fbc7 commit 2fd9bfa

File tree

2 files changed

+14
-23
lines changed

2 files changed

+14
-23
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -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

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2020-08-22 James Balamuta <[email protected]>
2+
3+
* .github/workflows/R-CMD-check.yaml: Re-enable devel build check by
4+
using Linux instead of macOS to perform the check
5+
16
2020-07-24 James Balamuta <[email protected]>
27

38
* DESCRIPTION (Version): Release 2.13.0.2

0 commit comments

Comments
 (0)