-
Notifications
You must be signed in to change notification settings - Fork 77
45 lines (36 loc) · 1.01 KB
/
check.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
on: [push, pull_request]
name: check
jobs:
check:
runs-on: ${{ matrix.os }}
env:
NOAWT: 1
name: ${{ matrix.os }}, R ${{ matrix.r }}, Java ${{ matrix.java }}
strategy:
fail-fast: false
matrix:
os: [ 'windows-2022', 'macOS-13', 'macOS-14', 'ubuntu-22.04' ]
r: [ 'release' ]
java: [ 8, 11 ]
steps:
- uses: actions/checkout@v4
- name: Install R
uses: s-u/R-actions/install@v2
with:
r-version: ${{ matrix.r }}
tools: base
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Setup R Java support
if: runner.os != 'Windows'
run: |
echo export PATH=$PATH > reconf.sh
echo export JAVA_HOME=$JAVA_HOME >> reconf.sh
echo R CMD javareconf >> reconf.sh
sudo bash reconf.sh
shell: bash
- uses: s-u/R-actions/pkg-check@v2
with:
build-script: sh mkdist