-
Notifications
You must be signed in to change notification settings - Fork 13
211 lines (172 loc) · 6.79 KB
/
R-CMD-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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
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-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel'}
- {os: ubuntu-latest, r: 'oldrel-1'}
- {os: ubuntu-latest, r: 'oldrel-2'}
- {os: ubuntu-latest, r: 'oldrel-3'}
- {os: ubuntu-20.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.PAT }}
TINYTEST_CI: "yes"
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
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, audio, data.table=?ignore-before-r=3.5.0
needs: check
- name: Installation and compilation configuration test
run: |
Rscript -e "install.packages('remotes');remotes::install_local(force = TRUE)"
- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran", "--run-donttest")'
upload-snapshots: true
error-on: '"error"'
- name: Speed
run: |
Rscript -e "install.packages('remotes');remotes::install_local(force = TRUE)"
Rscript -e "audio.whisper::whisper_benchmark(audio.whisper::whisper('tiny'))"
macOS-latest:
runs-on: ${{ matrix.config.os }}
name: "macos-latest-accelerate-metal"
strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.PAT }}
TINYTEST_CI: "yes"
WHISPER_ACCELERATE: "1"
WHISPER_METAL: "1"
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
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, audio, data.table=?ignore-before-r=3.5.0
needs: check
- name: Installation and compilation configuration test
run: |
Rscript -e "install.packages('remotes');remotes::install_local(force = TRUE)"
- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran", "--run-donttest")'
upload-snapshots: true
error-on: '"error"'
- name: Speed
run: |
Rscript -e "install.packages('remotes');remotes::install_local(force = TRUE)"
Rscript -e "audio.whisper::whisper_benchmark(audio.whisper::whisper('tiny', use_gpu = TRUE))"
cublas:
runs-on: ${{ matrix.config.os }}
name: "cublas"
strategy:
fail-fast: false
matrix:
config:
- {os: windows-latest, r: 'release'}
- {os: ubuntu-22.04, r: 'release'}
build: [Release]
arch: [x64]
cublas: [ON]
cuda-toolkit: [12.2.0, 11.8.0]
include:
- arch: x64
s2arc: x64
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.PAT }}
TINYTEST_CI: "yes"
WHISPER_CUBLAS: "1"
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
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, audio, data.table=?ignore-before-r=3.5.0
needs: check
- name: Install CUDA Toolkit - Windows
if: runner.os == 'Windows'
uses: Jimver/[email protected]
with:
#sub-packages: '["nvcc", "cudart", "cublas", "cublas_dev", "npp", "npp_dev", "visual_studio_integration"]'
cuda: '${{ matrix.cuda-toolkit }}'
#https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html
- name: Install CUDA Toolkit - Linux
if: runner.os == 'Linux'
uses: Jimver/[email protected]
with:
cuda: '${{ matrix.cuda-toolkit }}'
method: 'network'
sub-packages: '["nvcc", "cudart", "libraries", "libraries-dev", "runtime"]'
non-cuda-sub-packages: '["cuda", "libcublas", "libcublas-dev", "libnpp", "libnpp-dev"]'
#https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/
- name: CUDA setup
run: |
nvcc -V
nvcc --list-gpu-arch
Rscript -e "print(sprintf('Cuda install location: %s', Sys.getenv('CUDA_PATH')))"
Rscript -e "#file.remove(list.files(pattern = '.exe$', full.names = TRUE, recursive = TRUE))"
Rscript -e "file.remove(list.files(pattern = '.deb$', full.names = TRUE, recursive = TRUE))"
- name: List paths
run: |
Rscript -e "cat(list.files(Sys.getenv('CUDA_PATH'), full.names = TRUE, recursive = TRUE), sep = '\n')"
Rscript -e "cat(list.files('/opt/cuda', full.names = TRUE, recursive = TRUE), sep = '\n')"
- name: Add msbuild to PATH
if: runner.os == 'Windows'
uses: microsoft/setup-msbuild@v2
- name: Add cl.exe to PATH
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
- name: Installation and compilation configuration test
run: |
Rscript -e "install.packages('remotes');remotes::install_local(force = TRUE)"
- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran", "--run-donttest")'
upload-snapshots: true
error-on: '"error"'
- name: Speed
run: |
Rscript -e "install.packages('remotes');remotes::install_local(force = TRUE)"
Rscript -e "audio.whisper::whisper_benchmark(audio.whisper::whisper('tiny', use_gpu = TRUE))"