-
Notifications
You must be signed in to change notification settings - Fork 8
107 lines (86 loc) · 3.35 KB
/
main.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: CI
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
linux-check:
strategy:
matrix:
os: [ ubuntu-latest ]
R: [ '4.1.0', '4.1.1' ]
fail-fast: false
runs-on: ${{ matrix.os }}
name: R ${{ matrix.R }} ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.R }}
- name: Install system dependencies
run: sudo apt install build-essential libxml2-dev libssl-dev texinfo texlive-latex-base libcurl4-openssl-dev libcairo2-dev texlive-fonts-extra qpdf
- name: Install devtools
run: Rscript -e "install.packages('devtools', dependencies=T, repos='https://cloud.r-project.org')"
- name: Install package dependencies
run: Rscript -e "library(devtools); devtools::install_dev_deps('.')"
- name: Check package
run: Rscript -e "library(devtools); devtools::check('.', cran=T, error_on='warning', manual=T)"
mac-check:
strategy:
matrix:
os: [ macOS-latest ]
R: [ '4.1.0', '4.1.1' ]
fail-fast: false
runs-on: ${{ matrix.os }}
name: R ${{ matrix.R }} ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.R }}
- name: Install Homebrew
if: false
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- name: Install tex on Homebrew
if: false
run: brew cask install mactex
- name: Install devtools
run: Rscript -e "install.packages('devtools', dependencies=T, repos='https://cloud.r-project.org')"
- name: Install package dependencies
run: Rscript -e "library(devtools); devtools::install_dev_deps('.')"
- name: Check package
run: Rscript -e "library(devtools); devtools::check('.', cran=T, error_on='warning', manual=T)"
windows-check:
strategy:
matrix:
os: [ windows-latest ]
R: [ '4.1.0', '4.1.1' ]
fail-fast: false
runs-on: ${{ matrix.os }}
name: R ${{ matrix.R }} ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.R }}
- name: Install MikTex
if: false
run: |
wget https://miktex.org/download/win/miktexsetup-x64.zip -OutFile miktexsetup-x64.zip
Expand-Archive miktexsetup-x64.zip
miktexsetup-x64\\miktexsetup.exe --verbose --local-package-repository=c:\temp\miktex --package-set=essential download
miktexsetup-x64\\miktexsetup.exe --quiet --local-package-repository=c:\temp\miktex --package-set=essential --modify-path=yes install
shell: powershell
- name: Install devtools
run: Rscript.exe -e "install.packages('devtools', dependencies=T, repos='https://cloud.r-project.org')"
shell: powershell
- name: Install package dependencies
run: Rscript.exe -e "library(devtools); devtools::install_dev_deps('.')"
shell: powershell
- name: Check package
run: Rscript.exe -e "library(devtools); devtools::check('.', cran=T, error_on='warning', manual=T)"
shell: powershell