Skip to content

Commit

Permalink
create a new job
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Nov 12, 2023
1 parent c5ae2aa commit b72d83e
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/R-CMD-check-autotools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
- {os: ubuntu-latest, r: 'release', PROJ_VERSION: '6.3.1'}
- {os: ubuntu-latest, r: 'release', PROJ_VERSION: '5.2.0'}
- {os: ubuntu-latest, r: 'release', PROJ_VERSION: '4.9.3'}
- {os: ubuntu-latest, r: 'release', PROJ_VERSION: '_none_'}


env:
Expand All @@ -43,7 +42,7 @@ jobs:
use-public-rspm: true

- name: Install ubuntu autotools build system dependencies
if: runner.os == 'Linux' && ${{matrix.config.PROJ_VERSION}} != "_none_"
if: runner.os == 'Linux'
run: |
sudo apt-get update -y && sudo apt-get install -y libcurl4-openssl-dev libsqlite3-dev libtiff-dev cmake libssl-dev libxml2-dev
wget https://download.osgeo.org/proj/proj-$PROJ_NUMBER.tar.gz
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/R-CMD-check-none.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
push:
branches: [main, no-func]
pull_request:
branches: [main]

name: R-CMD-check-proj-autotools

jobs:
R-CMD-check-proj-autotools:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }}) (${{ matrix.config.PROJ_VERSION }})

strategy:
fail-fast: false
matrix:
config:
#- {os: macos-latest, r: 'release', PROJ_VERSION: 'cran'}
#- {os: windows-latest, r: 'release', PROJ_VERSION: 'cran'}
- {os: ubuntu-latest, r: 'release', PROJ_VERSION: 'none'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
PROJ_NUMBER: ${{ matrix.config.PROJ_VERSION }}

steps:
- uses: actions/checkout@v3

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

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true



# we don't use r-lib/actions/setup-r-dependencies@v because that slams the from-source install

- name: Install package installer
run: Rscript -e 'install.packages(c("pak"), repos = "https://cran.rstudio.com/")'

- name: Install package deps
run: Rscript -e 'pak::pak(c("testthat", "spelling", "knitr", "rmarkdown", "rcmdcheck"))'

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: false

0 comments on commit b72d83e

Please sign in to comment.