-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.02 KB
/
R-CMD-INSTALL.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
name: R CMD INSTALL
on:
push:
pull_request:
schedule:
- cron: '0 2 * * SAT'
env:
PACKAGE_NAME: libkrigingtemplate
jobs:
release:
name: ${{ matrix.os }} (${{ matrix.R }})
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
R: [ '4.3' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.R }}
rtools-version: '43'
- uses: r-lib/actions/setup-r-dependencies@v2
- name: R CMD INSTALL
shell: bash
run: |
R CMD INSTALL --build .
mkdir R-${{ matrix.R }}
mv ${{ env.PACKAGE_NAME }}*.* R-${{ matrix.R }}/.
- uses: actions/upload-artifact@v2
with:
path: ./R-*
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./R-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}