-
Notifications
You must be signed in to change notification settings - Fork 3
72 lines (56 loc) · 2.34 KB
/
R-CMD-check-autotools.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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("lifecycle", "wk", "testthat", "spelling", "knitr", "rmarkdown", "rcmdcheck"))'
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: false