WK Transformer #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [main, no5] | |
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: '8.2.1'} | |
- {os: ubuntu-latest, r: 'release', PROJ_VERSION: '7.2.1'} | |
- {os: ubuntu-latest, r: 'release', PROJ_VERSION: '6.3.1'} | |
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 | |
- name: Install ubuntu autotools build system dependencies | |
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 | |
tar zxvf proj-$PROJ_NUMBER.tar.gz | |
cd proj-$PROJ_NUMBER | |
./configure --prefix /usr | |
sudo make install | |
sudo ldconfig | |
PROJ_MAJOR=`echo $PROJ_NUMBER | cut -f1 -d"."` | |
if test ${PROJ_MAJOR} -ge 7; then | |
sudo projsync --source-id fr_ign --system-directory | |
fi | |
cd .. | |
rm proj-$PROJ_NUMBER.tar.gz | |
sudo rm -rf proj-$PROJ_NUMBER | |
# 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 |