Skip to content

Commit d5ace36

Browse files
committed
update gha
1 parent 97a613b commit d5ace36

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- {os: ubuntu-24.04, r: 'release', name: 'Ubuntu 24.04 (release)'}
2727
- {os: ubuntu-22.04, r: 'release', name: 'Ubuntu 22.04 (release)'}
2828
- {os: ubuntu-20.04, r: 'release', name: 'Ubuntu 20.04 (release)'}
29+
- {os: ubuntu-latest, container: { image: 'ghcr.io/r-hub/containers/ubuntu-clang:latest' }, name: 'r-devel-linux-x86_64-debian-clang'}
2930

3031
env:
3132
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
@@ -54,6 +55,18 @@ jobs:
5455
with:
5556
extra-packages: any::rcmdcheck
5657

58+
- name: Install system dependencies (Ubuntu)
59+
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-24.04' || matrix.config.os == 'ubuntu-22.04' || matrix.config.os == 'ubuntu-20.04'
60+
run: |
61+
sudo apt-get update
62+
sudo apt-get install -y libtesseract-dev libleptonica-dev libpoppler-cpp-dev
63+
64+
- name: Install system dependencies (Windows)
65+
if: matrix.config.os == 'windows-latest'
66+
run: |
67+
choco install tesseract
68+
choco install poppler
69+
5770
- name: Run on Ubuntu
5871
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-24.04' || matrix.config.os == 'ubuntu-22.04' || matrix.config.os == 'ubuntu-20.04'
5972
uses: r-lib/actions/check-r-package@v2
@@ -65,16 +78,3 @@ jobs:
6578
- name: Run on Windows
6679
if: matrix.config.os == 'windows-latest'
6780
uses: r-lib/actions/check-r-package@v2
68-
69-
- name: Check with Ubuntu 22 and Clang 19
70-
if: matrix.config.os == 'ubuntu-latest'
71-
run: |
72-
chmod 777 -R $(pwd)/
73-
docker run -v ${{ github.workspace }}:/workspace -w /workspace pachadotdev/r-stable-ubuntu-clang:latest bash -c "
74-
sudo apt install -y tesseract-ocr libtesseract-dev libleptonica-dev libpoppler-cpp-dev libmagick++-dev && \
75-
Rscript -e 'pkgbuild::check_build_tools(debug = TRUE)' && \
76-
Rscript -e 'devtools::install_dev_deps(dependencies = TRUE)' && \
77-
Rscript -e 'devtools::check(args = c(\"--no-manual\", \"--as-cran\"))' && \
78-
cd .. && \
79-
rm -rf check-docker
80-
"

0 commit comments

Comments
 (0)