-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (42 loc) · 1.35 KB
/
check.yml
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
on:
push:
branches:
- master
pull_request:
branches:
- master
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- { os: windows-latest, r: 'release'}
- { os: macOS-10.15, r: 'release'}
- { os: ubuntu-20.04, r: 'release'}
env:
CRAN: ${{ matrix.config.cran }}
steps:
- uses: actions/checkout@v1
- uses: r-lib/actions/setup-r@master
with:
r-version: ${{ matrix.config.r }}
- name: Build
run: "sh -c '(cd ..; R CMD build tiff)'"
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: "sudo apt-get install -y libtiff-dev"
- name: Install macOS dependencies
if: runner.os == 'macOS'
run: "for i in pkgconfig-0.28 xz-5.2.4 jpeg-9 tiff-4.1.0; do curl -s https://mac.r-project.org/libs-4/$i-darwin.17-x86_64.tar.gz | sudo tar fxz - --strip 2 -C /usr/local; done"
- name: R CMD check
run: "bash -c 'R CMD check --no-manual ../tiff_*.tar.gz'"
- name: Upload check results
if: failure()
uses: actions/upload-artifact@master
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: tiff.Rcheck