Skip to content

Commit

Permalink
Update r-cmd-check.yml to fix Ubuntu problems
Browse files Browse the repository at this point in the history
  • Loading branch information
bertcarnell authored Aug 3, 2024
1 parent 6687232 commit 97ab075
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/r-cmd-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:
- {os: macOS-latest, r: 'devel'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel'}
#- {os: ubuntu-20.04, r: 'release'}
#- {os: ubuntu-20.04, r: 'devel'}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
Expand All @@ -52,36 +50,16 @@ jobs:

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

- 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: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v4
with:
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 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"
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu66_66.1-2ubuntu2.1_amd64.deb
sudo dpkg -i libicu66_66.1-2ubuntu2.1_amd64.deb
rm libicu66_66.1-2ubuntu2.1_amd64.deb
sudo apt-get install libcurl4-openssl-dev libicu-dev texlive-latex-base
- name: Install dependencies
run: |
run: |
install.packages("remotes")
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
remotes::install_cran("covr")
Expand Down

0 comments on commit 97ab075

Please sign in to comment.