|
26 | 26 | - {os: ubuntu-24.04, r: 'release', name: 'Ubuntu 24.04 (release)'} |
27 | 27 | - {os: ubuntu-22.04, r: 'release', name: 'Ubuntu 22.04 (release)'} |
28 | 28 | - {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'} |
29 | 30 |
|
30 | 31 | env: |
31 | 32 | GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
|
54 | 55 | with: |
55 | 56 | extra-packages: any::rcmdcheck |
56 | 57 |
|
| 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 | +
|
57 | 70 | - name: Run on Ubuntu |
58 | 71 | if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-24.04' || matrix.config.os == 'ubuntu-22.04' || matrix.config.os == 'ubuntu-20.04' |
59 | 72 | uses: r-lib/actions/check-r-package@v2 |
|
65 | 78 | - name: Run on Windows |
66 | 79 | if: matrix.config.os == 'windows-latest' |
67 | 80 | 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